Advertisement
iSach

Untitled

Nov 1st, 2015
219
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.         Bukkit.broadcastMessage("a");
  5.         if(damager instance Player) {
  6.             Bukkit.broadcastMessage("b");
  7.             if(!HungerGames.players.contains(damager)) {
  8.                 Bukkit.broadcastMessage("c");
  9.                 event.setCancelled(true);
  10.             }
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement