Modify Method

This commit is contained in:
RayzsYT committed 2024-07-03 04:42:32 +02:00
1 parent 012c5709f1
commit 638fc82bfc
1 file changed
+4
@@ -94,6 +94,10 @@ public class Group implements Serializable {
return this.generalGroupBlacklist.isListed(command, !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED);
}
public boolean contains(String command, boolean intensive) {
return this.generalGroupBlacklist.isListed(command, intensive);
}
public boolean contains(String command, String server) {
GroupBlacklist groupBlacklist = getOrCreateGroupBlacklist(server);
return (this.generalGroupBlacklist.isListed(command, !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED) || groupBlacklist != null && getOrCreateGroupBlacklist(server).isListed(command, !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED));