mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-12-01 04:49:44 -05:00
Fix
This commit is contained in:
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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user