SimplyPerms/net/crystalyx/bukkit/simplyperms/preventions/Chat.java

24 lines
608 B
Java
Raw Normal View History

2012-04-29 00:11:39 +00:00
package net.crystalyx.bukkit.simplyperms.preventions;
import net.crystalyx.bukkit.simplyperms.SimplyPlugin;
import net.crystalyx.bukkit.simplyperms.SimplyPrevents;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.player.PlayerChatEvent;
public class Chat extends SimplyPrevents {
public Chat(SimplyPlugin plugin) {
super(plugin);
}
@EventHandler(priority = EventPriority.LOWEST)
public void chat(PlayerChatEvent event) {
if (!event.getMessage().startsWith("u00a74u00a75u00a73u00a74")) {
prevent(event, event.getPlayer(), "chat");
}
}
2012-04-29 00:55:03 +00:00
2012-04-29 00:11:39 +00:00
}