Skip to content

Commit fbbd61c

Browse files
committed
Fixed bugs.
1 parent 3a0c9d9 commit fbbd61c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: common/src/main/kotlin/me/scoretwo/fastscript/FastScript.kt

+5-4
Original file line numberDiff line numberDiff 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" -> {

0 commit comments

Comments
 (0)