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) {
136
136
when (mode) {
137
137
" config" -> {
138
138
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" )
143
144
reloadLanguage()
144
145
}
145
146
" script" -> {
You can’t perform that action at this time.
0 commit comments