This commit is contained in:
RayzsYT committed 2024-05-16 22:52:01 +02:00
1 parent b19d83da82
commit d6d648cda9
2 files changed
+3 -3

No files matched your search

@@ -20,7 +20,7 @@ public class BungeeAntiTabListener implements Listener {
event.getSuggestions().removeIf(command -> {
if(Storage.TURN_BLACKLIST_TO_WHITELIST)
return !Storage.isCommandBlockedPrecise(command) && !PermissionUtil.hasBypassPermission(player, command);
else return Storage.isCommandBlockedPrecise(command) && !PermissionUtil.hasBypassPermission(player, command);
else return Storage.isCommandBlocked(command) && !PermissionUtil.hasBypassPermission(player, command);
});
}
@@ -26,7 +26,7 @@ public class VelocityAntiTabListener {
event.getSuggestions().removeIf(command -> {
if(Storage.TURN_BLACKLIST_TO_WHITELIST)
return !Storage.isCommandBlockedPrecise(command) && !PermissionUtil.hasBypassPermission(player, command);
else return Storage.isCommandBlockedPrecise(command) && !PermissionUtil.hasBypassPermission(player, command);
else return Storage.isCommandBlocked(command) && !PermissionUtil.hasBypassPermission(player, command);
});
}
@@ -40,7 +40,7 @@ public class VelocityAntiTabListener {
String commandName = command.getName();
if(Storage.TURN_BLACKLIST_TO_WHITELIST)
return !Storage.isCommandBlockedPrecise(commandName) && !PermissionUtil.hasBypassPermission(player, commandName);
return Storage.isCommandBlockedPrecise(commandName) && !PermissionUtil.hasBypassPermission(player, commandName);
else return Storage.isCommandBlocked(commandName) && !PermissionUtil.hasBypassPermission(player, commandName);
});
}