Skip to content

Commit

Permalink
Update WorldScriptHelper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Mar 14, 2013
1 parent 798ffef commit 59f5816
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -217,7 +217,7 @@ public void playerHitByEntity(EntityDamageByEntityEvent event) {
&& 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

0 comments on commit 59f5816

Please sign in to comment.