Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler(priority=EventPriority.HIGHEST, ignoreCancelled=true)
- public void onchat(AsyncPlayerChatEvent olay)
- {
- if ((olay.getPlayer() instanceof Player))
- {
- Player oyuncu = olay.getPlayer();
- if (olay.getMessage().contains("I??"))
- {
- olay.setCancelled(true);
- oyuncu.sendMessage(this.Prefix + this.chat);
- }
- if (olay.getMessage().contains("i???"))
- {
- olay.setCancelled(true);
- oyuncu.sendMessage(this.Prefix + this.chat);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement