Add auto-op. Closes #8

This commit is contained in:
Luck committed 2016-09-07 23:21:24 +01:00
1 parent cd6cac1fb6
commit fb0e694155
4 files changed
+36 -7

No files matched your search

@@ -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");
}