if (event.isCommand()) {
if (BungeeEssentials.getInstance().contains("fulllog")) {
Log.log(Dictionary.format("[COMMAND] " + Dictionary.FORMAT_CHAT, "PLAYER", sender, "MESSAGE", event.getMessage()).toLegacyText());
}
String cmd = event.getMessage().substring(1);
<BUG>if (BungeeEssentials.getInstance().contains("spam-command") && !player.hasPermission(Permissions.Admin.BYPASS_FILTER)) {
</BUG>
if (cmds.get(player.getUniqueId()) != null && cmd.equals(cmds.get(player.getUniqueId())) & cmdLog.containsKey(player.getUniqueId())) {
player.sendMessage(Dictionary.format(Dictionary.WARNING_LEVENSHTEIN_DISTANCE));
event.setCancelled(true);

if (event.isCommand()) {
if (BungeeEssentials.getInstance().contains("fulllog")) {
Log.log(Dictionary.format("[COMMAND] " + Dictionary.FORMAT_CHAT, "PLAYER", sender, "MESSAGE", event.getMessage()).toLegacyText());
}
String cmd = event.getMessage().substring(1);
if (BungeeEssentials.getInstance().contains("spam-command") && !Permissions.hasPerm(player, Permissions.Admin.BYPASS_FILTER)) {
if (cmds.get(player.getUniqueId()) != null && cmd.equals(cmds.get(player.getUniqueId())) & cmdLog.containsKey(player.getUniqueId())) {
player.sendMessage(Dictionary.format(Dictionary.WARNING_LEVENSHTEIN_DISTANCE));
event.setCancelled(true);
