File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
common/src/main/kotlin/me/scoretwo/fastscript Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -136,10 +136,11 @@ class FastScript(val plugin: ScriptPlugin) {
136136 when (mode) {
137137 " config" -> {
138138 settings.reload()
139- if (settings.getBoolean(settings.ignoreCase(" options.debug" )))
140- plugin.server.dispatchCommand(plugin.server.console, " fs ::enable_debug" )
141- else
142- plugin.server.dispatchCommand(plugin.server.console, " fs ::disable_debug" )
139+ if (stats == ScriptPluginState .RUNNING )
140+ if (settings.getBoolean(settings.ignoreCase(" options.debug" )))
141+ plugin.server.dispatchCommand(plugin.server.console, " fs ::enable_debug" )
142+ else
143+ plugin.server.dispatchCommand(plugin.server.console, " fs ::disable_debug" )
143144 reloadLanguage()
144145 }
145146 " script" -> {
You can’t perform that action at this time.
0 commit comments