We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a0c9d9 commit fbbd61cCopy full SHA for fbbd61c
common/src/main/kotlin/me/scoretwo/fastscript/FastScript.kt
@@ -136,10 +136,11 @@ class FastScript(val plugin: ScriptPlugin) {
136
when (mode) {
137
"config" -> {
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")
+ if (stats == ScriptPluginState.RUNNING)
+ if (settings.getBoolean(settings.ignoreCase("options.debug")))
+ plugin.server.dispatchCommand(plugin.server.console, "fs ::enable_debug")
+ else
143
+ plugin.server.dispatchCommand(plugin.server.console, "fs ::disable_debug")
144
reloadLanguage()
145
}
146
"script" -> {
0 commit comments