diff --git a/src/net/crystalyx/bukkit/simplyperms/preventions/chat/CapsLock.java b/src/net/crystalyx/bukkit/simplyperms/preventions/chat/CapsLock.java index 778964c..2e46e0c 100644 --- a/src/net/crystalyx/bukkit/simplyperms/preventions/chat/CapsLock.java +++ b/src/net/crystalyx/bukkit/simplyperms/preventions/chat/CapsLock.java @@ -23,7 +23,7 @@ public class CapsLock extends SimplyPrevents { String nocaps = message.replaceAll("[A-Z]*", ""); if (message.length() > 5 && message.length() - nocaps.length() > message.length() / 2) { - prevent(event, event.getPlayer(), "capslock,chat"); + prevent(event, event.getPlayer(), "capslock,spam"); } } diff --git a/src/net/crystalyx/bukkit/simplyperms/preventions/chat/Flood.java b/src/net/crystalyx/bukkit/simplyperms/preventions/chat/Flood.java index 180cc86..dd3ae53 100644 --- a/src/net/crystalyx/bukkit/simplyperms/preventions/chat/Flood.java +++ b/src/net/crystalyx/bukkit/simplyperms/preventions/chat/Flood.java @@ -22,7 +22,7 @@ public class Flood extends SimplyPrevents { public void chat(PlayerChatEvent event) { Player player = event.getPlayer(); if (isChatLocked(player)) { - prevent(event, player, "flood,chat"); + prevent(event, player, "flood,spam"); } else { setChatLock(player); }