Exemplo n.º 1
0
 @EventHandler
 public void onPlayerJoin(PlayerJoinEvent event) {
   //		ipRecorder.onPlayerJoinEvent(event);
   //		forumActivation.onPlayerJoinEvent(event);
   respectedAutoPromote.onPlayerJoinEvent(event);
   homes.onJoinEvent(event);
   hubPortals.onJoinEvent(event);
   /*
   This allowed the owner when joining the game to get full epic armor
   */
   if (event.getPlayer().getName().equals("Esaych")) {
     PlayerInventory inv = event.getPlayer().getInventory();
     colorize(inv.getHelmet(), 47, 0, 111);
     colorize(inv.getChestplate(), 47, 0, 111);
     colorize(inv.getLeggings(), 47, 0, 111);
     colorize(inv.getBoots(), 47, 0, 111);
   }
   if (staffVotes != null) {
     staffVotes.onPlayerJoinEvent(event);
   }
 }