This commit is contained in:
Michel Roux 2012-05-10 10:17:59 +02:00
parent 434cdb2544
commit cd8febf077
2 changed files with 2 additions and 2 deletions

View File

@ -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");
}
}

View File

@ -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);
}