Advertisement
iSach

Untitled

Nov 1st, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @EventHandler
  2.     public void onEntityDamageByEntity(EntityDamageByEntityEvent event){
  3.         Entity damager = event.getDamager();
  4.         if(damager instanceof Player && !HungerGames.players.contains(damager))
  5.             event.setCancelled(true);
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement