Remove redundant config option
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ public class LPConfigurationLink implements LPConfiguration {
|
||||
|
||||
@Override
|
||||
public boolean getDebugPermissionChecks() {
|
||||
return master.isDebugPermissionChecks();
|
||||
return false; // Constant TODO depreciate this
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -39,7 +39,6 @@ import java.util.Map;
|
||||
public class PermissionCalculator {
|
||||
private final LuckPermsPlugin plugin;
|
||||
private final String objectName;
|
||||
private final boolean debug;
|
||||
private final List<PermissionProcessor> processors;
|
||||
|
||||
private final LoadingCache<String, Tristate> cache = CacheBuilder.newBuilder()
|
||||
@@ -57,12 +56,7 @@ public class PermissionCalculator {
|
||||
public Tristate getPermissionValue(String permission) {
|
||||
permission = permission.toLowerCase();
|
||||
Tristate t = cache.getUnchecked(permission);
|
||||
|
||||
plugin.getDebugHandler().printOutput(objectName, permission, t);
|
||||
if (debug) {
|
||||
plugin.getLog().info("Checking if " + objectName + " has permission: " + permission + " - (" + t.toString() + ")");
|
||||
}
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,6 @@ public abstract class AbstractConfiguration<T extends LuckPermsPlugin> implement
|
||||
private boolean applyingRegex;
|
||||
private boolean applyingShorthand;
|
||||
private boolean logNotify;
|
||||
private boolean debugPermissionChecks;
|
||||
private boolean opsEnabled;
|
||||
private boolean commandsAllowOp;
|
||||
private boolean autoOp;
|
||||
@@ -71,6 +70,7 @@ public abstract class AbstractConfiguration<T extends LuckPermsPlugin> implement
|
||||
private boolean vaultPrimaryGroupOverridesCheckInherited;
|
||||
private boolean vaultPrimaryGroupOverridesCheckExists;
|
||||
private boolean vaultPrimaryGroupOverridesCheckMemberOf;
|
||||
private boolean vaultDebug;
|
||||
private Map<String, String> worldRewrites;
|
||||
private Map<String, String> groupNameRewrites;
|
||||
private List<Rule> defaultAssignments;
|
||||
@@ -110,7 +110,6 @@ public abstract class AbstractConfiguration<T extends LuckPermsPlugin> implement
|
||||
applyingRegex = getBoolean("apply-regex", true);
|
||||
applyingShorthand = getBoolean("apply-shorthand", true);
|
||||
logNotify = getBoolean("log-notify", true);
|
||||
debugPermissionChecks = getBoolean("debug-permission-checks", false);
|
||||
autoOp = getBoolean("auto-op", false);
|
||||
opsEnabled = !isAutoOp() && getBoolean("enable-ops", true);
|
||||
commandsAllowOp = getBoolean("commands-allow-op", true);
|
||||
@@ -121,6 +120,7 @@ public abstract class AbstractConfiguration<T extends LuckPermsPlugin> implement
|
||||
vaultPrimaryGroupOverridesCheckInherited = getBoolean("vault-primary-groups-overrides.check-inherited-permissions", false);
|
||||
vaultPrimaryGroupOverridesCheckExists = getBoolean("vault-primary-groups-overrides.check-group-exists", true);
|
||||
vaultPrimaryGroupOverridesCheckMemberOf = getBoolean("vault-primary-groups-overrides.check-user-member-of", true);
|
||||
vaultDebug = getBoolean("vault-debug", false);
|
||||
worldRewrites = ImmutableMap.copyOf(getMap("world-rewrite", Collections.emptyMap()));
|
||||
groupNameRewrites = ImmutableMap.copyOf(getMap("group-name-rewrite", Collections.emptyMap()));
|
||||
|
||||
|
||||
@@ -64,8 +64,6 @@ public interface LPConfiguration {
|
||||
|
||||
boolean isLogNotify();
|
||||
|
||||
boolean isDebugPermissionChecks();
|
||||
|
||||
boolean isOpsEnabled();
|
||||
|
||||
boolean isCommandsAllowOp();
|
||||
@@ -86,6 +84,8 @@ public interface LPConfiguration {
|
||||
|
||||
boolean isVaultPrimaryGroupOverridesCheckMemberOf();
|
||||
|
||||
boolean isVaultDebug();
|
||||
|
||||
Map<String, String> getWorldRewrites();
|
||||
|
||||
Map<String, String> getGroupNameRewrites();
|
||||
|
||||
Reference in New Issue
Block a user