SHARE
TWEET

Untitled

a guest Sep 21st, 2019 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Chatprefix implements Listener {
  2.  
  3.     @EventHandler
  4.     public void onChat(AsyncPlayerChatEvent e) {
  5.         if (e.getPlayer().getWorld().getName().equalsIgnoreCase(Main.word)) {
  6.             if (e.getPlayer().hasPermission("rang.admin")) {
  7.                     e.setCancelled(false);
  8.                     e.setMessage("§8[§cAdmin§8]§c " + e.getPlayer().getDisplayName() + " §7» §c" + e.getMessage());
  9.              } else {
  10.                 e.setCancelled(true);
  11.                 e.getPlayer().sendMessage("§c Du bracuhst den Admin Rang um hier zuschreiben!");
  12.             }
  13.         }
  14.  
  15.     }
  16.  
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top