This commit is contained in:
RayzsYT committed 2024-07-11 01:32:40 +02:00
1 parent 0e67f7d638
commit 58bb3a1825
1 file changed
+1 -1
@@ -23,7 +23,7 @@ public class VelocityAntiTabListener {
Player player = event.getPlayer();
if(PermissionUtil.hasBypassPermission(player) || event.getSuggestions().isEmpty() || !player.getCurrentServer().isPresent()) return;
event.getSuggestions().removeIf(command -> command.startsWith("/") && Storage.Blacklist.isBlocked(player, command, !Storage.ConfigSections.Settings.TURN_BLACKLIST_TO_WHITELIST.ENABLED, 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)