mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-12-02 05:19:52 -05:00
Fix Tab-Completion
This commit is contained in:
1 parent
759c8f1b74
commit
afe138a185
1 file changed
+2
-2
@@ -23,7 +23,7 @@ public class VelocityAntiTabListener {
|
||||
|
||||
if(PermissionUtil.hasBypassPermission(player)) return;
|
||||
|
||||
event.getSuggestions().removeIf(command -> Storage.Blacklist.isBlocked(player, command, player.getCurrentServer().get().getServerInfo().getName()));
|
||||
event.getSuggestions().removeIf(command -> Storage.Blacklist.isBlocked(player, command, !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED, player.getCurrentServer().get().getServerInfo().getName()));
|
||||
}
|
||||
|
||||
@Subscribe (order = PostOrder.LAST)
|
||||
@@ -32,7 +32,7 @@ public class VelocityAntiTabListener {
|
||||
|
||||
if(PermissionUtil.hasBypassPermission(player)) return;
|
||||
|
||||
event.getRootNode().getChildren().removeIf(command -> Storage.Blacklist.isBlocked(player, command.getName(), player.getCurrentServer().get().getServerInfo().getName()));
|
||||
event.getRootNode().getChildren().removeIf(command -> Storage.Blacklist.isBlocked(player, command.getName(), !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED, player.getCurrentServer().get().getServerInfo().getName()));
|
||||
}
|
||||
|
||||
public static void updateCommands() {
|
||||
|
||||
Reference in new issue
Block a user