Fix Chat Tab-Completion

This commit is contained in:
RayzsYT committed 2024-06-02 20:47:50 +02:00
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)