Fixed armor stand protection again.

Thanks for breaking it, Spigot team...
This commit is contained in:
ryanhamshire 2014-12-15 19:19:44 -08:00
parent 68fa7007f0
commit d18aa6cfe9

View File

@ -801,6 +801,14 @@ class PlayerEventHandler implements Listener
} }
} }
//when a player interacts with a specific part of entity...
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
public void onPlayerInteractAtEntity(PlayerInteractAtEntityEvent event)
{
//treat it the same as interacting with an entity in general
this.onPlayerInteractEntity((PlayerInteractEntityEvent)event);
}
//when a player interacts with an entity... //when a player interacts with an entity...
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST) @EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) public void onPlayerInteractEntity(PlayerInteractEntityEvent event)