SimplyPerms/net/crystalyx/bukkit/simplyperms/preventions/Chat.java
2012-04-29 02:55:03 +02:00

24 lines
608 B
Java

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