Guest User

Die Events

a guest
Dec 11th, 2016
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @EventHandler
  2.     public void onQuit(PlayerQuitEvent e) {
  3.         Player p = e.getPlayer();
  4.        
  5.         String name = hide.getName(p);
  6.         if(hide.isDisguised(e.getPlayer()) == true) {
  7.             e.setQuitMessage(prefix + "§a" + name + " §ejoined");
  8.         } else if(hide.isDisguised(e.getPlayer()) == false){
  9.             e.setQuitMessage(prefix + "§a" + p.getName() + " §ejoined!");
  10.         } else {
  11.             e.setQuitMessage(prefix + "§a" + p.getName() + " §ejoined!");
  12.         }
  13.     }
  14.     @EventHandler
  15.     public void onJoin(PlayerJoinEvent e) {
  16.        
  17.         Player p = e.getPlayer();
  18.         String name = hide.getName(p);
  19.         if(hide.isDisguised(e.getPlayer()) == true) {
  20.             e.setJoinMessage(prefix + "§a" + name + " §ejoined");
  21.         } else if(hide.isDisguised(e.getPlayer()) == false){
  22.             e.setJoinMessage(prefix + "§a" + p.getName() + " §ejoined!");
  23.         } else {
  24.             e.setJoinMessage(prefix + "§a" + p.getName() + " §ejoined!");
  25.         }
  26.     }
RAW Paste Data