mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Change Method-Name
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user