A question on EntityDamaged events

Discussion in 'Plugin Development' started by LRFLEW, Jan 14, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    LRFLEW

    I'm trying to make a plugin that affects PvP attacks, so looking through the docs, I found that the event I'm looking for is onEntityDamagedByEntity(), but when looking through the Entity class file, there doesn't seem to be an obvious way to figure out if an entity is a player (or a way to call actions on the player, such as player.getName(), which I need). Is there something I'm overlooking? I saw entity.getEntityID(). Am I suppose to use that somehow?

    I want to make sure there's nothing I'm missing before doing something like opening an issue.
     
  2. Offline

    axel3200

Thread Status:
Not open for further replies.

Share This Page