Implements getDebug and setDebug

This commit is contained in:
Michel Roux 2012-05-08 14:29:05 +02:00
parent 16bd435ece
commit 9a751bcd3a
4 changed files with 34 additions and 0 deletions

View File

@ -188,6 +188,16 @@ public class SimplyAPI implements PermsConfig {
plugin.config.setDefaultGroup(group); plugin.config.setDefaultGroup(group);
} }
@Override
public boolean getDebug() {
return plugin.config.getDebug();
}
@Override
public void setDebug(boolean debug) {
plugin.config.setDebug(debug);
}
public void refreshPermissions() { public void refreshPermissions() {
plugin.refreshPermissions(); plugin.refreshPermissions();
} }

View File

@ -291,4 +291,14 @@ public class ConfigFile implements PermsConfig {
plugin.getConfig().set("default", group); plugin.getConfig().set("default", group);
} }
@Override
public boolean getDebug() {
return plugin.getConfig().getBoolean("debug", false);
}
@Override
public void setDebug(boolean debug) {
plugin.getConfig().set("debug", debug);
}
} }

View File

@ -424,4 +424,14 @@ public class ConfigSQL implements PermsConfig {
config.setDefaultGroup(group); config.setDefaultGroup(group);
} }
@Override
public boolean getDebug() {
return config.getDebug();
}
@Override
public void setDebug(boolean debug) {
config.setDebug(debug);
}
} }

View File

@ -75,4 +75,8 @@ public interface PermsConfig {
public void setDefaultGroup(String group); public void setDefaultGroup(String group);
public boolean getDebug();
public void setDebug(boolean debug);
} }