Add a command to toggle whether jail is in debugging or not.

This commit is contained in:
graywolf336
2014-04-21 22:04:03 -05:00
parent 43feed4469
commit 0ae2956137
4 changed files with 38 additions and 1 deletions

View File

@ -233,8 +233,14 @@ public class JailMain extends JavaPlugin {
}
/** Sets whether the plugin is in debugging or not. */
public void setDebugging(boolean debug) {
public boolean setDebugging(boolean debug) {
this.debug = debug;
//Save whether we are debugging when we disable the plugin
getConfig().set(Settings.DEBUG.getPath(), this.debug);
saveConfig();
return this.debug;
}
/** Returns if the plugin is in debug state or not. */