spam -> chat
This commit is contained in:
parent
d437044ea0
commit
f43b2dedc0
@ -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,spam");
|
||||
prevent(event, event.getPlayer(), "capslock,chat");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,spam");
|
||||
prevent(event, player, "flood,chat");
|
||||
} else {
|
||||
setChatLock(player);
|
||||
}
|
||||
|
@ -133,6 +133,7 @@ permissions:
|
||||
permissions.allow.monster: true
|
||||
permissions.allow.sneak: true
|
||||
permissions.allow.build: true
|
||||
permissions.allow.chat: true
|
||||
permissions.allow.craft: true
|
||||
permissions.allow.interact: true
|
||||
permissions.allow.loot: true
|
||||
|
Loading…
Reference in New Issue
Block a user