CainDonaghey

Untitled

Jul 9th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1.     @EventHandler
  2.     public void onEntityDamageByEntity(EntityDamageByEntityEvent e) {
  3.         if(e.getEntity() instanceof Player) {
  4.             if(GodCommand.godPlayers.contains(((Player) e.getEntity()).getName())) {
  5.                 e.setCancelled(true);
  6.                 e.setDamage(0);
  7.                 ((Player) e.getEntity()).sendMessage("Atempted to stop");
  8.             }
  9.         }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment