Change Method-Name

This commit is contained in:
RayzsYT committed 2024-05-22 20:16:47 +02:00
1 parent 21d4e83e86
commit 3d3320c448
2 files changed
+2 -2

No files matched your search

@@ -217,7 +217,7 @@ public class Storage {
return BLACKLIST.isBlocked(targetObj, command, intensive);
}
public static boolean isTabable(Object targetObj, String command) {
public static boolean isNotTabable(Object targetObj, String command) {
return BLACKLIST.isBlocked(targetObj, command, !ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED);
}
@@ -17,7 +17,7 @@ public class BukkitAntiTabListener implements Listener {
if (PermissionUtil.hasBypassPermission(player)) return;
if(!BukkitLoader.isLoaded()) event.getCommands().clear();
else event.getCommands().removeIf(command -> !Storage.Blacklist.isTabable(player, command));
else event.getCommands().removeIf(command -> Storage.Blacklist.isNotTabable(player, command));
}
public static void updateCommands() {