Skip to content

Commit

Permalink
No IDE :(
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Mar 14, 2013
1 parent 1469aee commit 7986edb
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -213,11 +213,11 @@ public void playerHit(EntityDamageEvent event) {
@EventHandler
public void playerHitByEntity(EntityDamageByEntityEvent event) {

if (CitizensAPI.getNPCRegistry().isNPC(event.getEntity()
if (CitizensAPI.getNPCRegistry().isNPC(event.getEntity())
&& event.getDamager() instanceof Player) {
Map<String, String> context = new HashMap<String, String>();
context.put("cause", event.getCause().toString());
if (doEvent("player damages npc", CitizensAPI.getNPCRegistry.getNPC(event.getEntity(),
if (doEvent("player damages npc", CitizensAPI.getNPCRegistry.getNPC(event.getEntity()),
(Player) event.getEntity(), context))
event.setCancelled(true);

Expand Down Expand Up @@ -262,4 +262,4 @@ public void playerEat(EntityRegainHealthEvent event) {



}
}

0 comments on commit 7986edb

Please sign in to comment.