mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Fix Chat Tab-Completion
This commit is contained in:
1 parent
0b1cf56125
commit
3df505b030
1 file changed
+1
-1
@@ -22,7 +22,7 @@ public class VelocityAntiTabListener {
|
||||
Player player = event.getPlayer();
|
||||
if(PermissionUtil.hasBypassPermission(player) || event.getSuggestions().isEmpty() || !player.getCurrentServer().isPresent()) return;
|
||||
|
||||
event.getSuggestions().removeIf(command -> Storage.Blacklist.isBlocked(player, command, !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED, player.getCurrentServer().get().getServerInfo().getName()));
|
||||
event.getSuggestions().removeIf(command -> command.startsWith("/") && Storage.Blacklist.isBlocked(player, command, !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED, player.getCurrentServer().get().getServerInfo().getName()));
|
||||
}
|
||||
|
||||
@Subscribe (order = PostOrder.LAST)
|
||||
|
||||
Reference in new issue
Block a user