Add auto-op. Closes #8

This commit is contained in:
Luck
2016-09-07 23:21:24 +01:00
Unverified
parent cd6cac1fb6
commit fb0e694155
4 changed files with 36 additions and 7 deletions
@@ -112,13 +112,17 @@ public abstract class LPConfiguration<T extends LuckPermsPlugin> {
}
public boolean getEnableOps() {
return getBoolean("enable-ops", true);
return !getAutoOp() && getBoolean("enable-ops", true);
}
public boolean getCommandsAllowOp() {
return getBoolean("commands-allow-op", true);
}
public boolean getAutoOp() {
return getBoolean("auto-op", false);
}
public String getVaultServer() {
return getString("vault-server", "global");
}