Help making my plugin

Discussion in 'Plugin Development' started by Pinoyskii, Oct 16, 2012.

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

    Pinoyskii

    I don't want this to register when a block is damaged and I want it to register when a match starts. Can anyone show me how to do that?

    pm.registerEvent(Event.Type.BLOCK_DAMAGE, blockListener, Event.Priority.Normal, this);
     
  2. Offline

    JWhy

    That event is EntityDamageByEntityEvent you need, just check whether the event's damage receiver and entity sender are both instanceof org.bukkit.entity.Player
     
    Pinoyskii likes this.
  3. Offline

    Pinoyskii

    Okay, thanks
     
  4. Offline

    TnT

    Moved to plugin development.
     
Thread Status:
Not open for further replies.

Share This Page