Need help changing codes

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

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

    Pinoyskii

    I want to change

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

    to EntityDamageByEntityEvent. How do I do that?
     
  2. Offline

    travja

    That is old code... Look up "Introduction to the new event system" on google or something, will tell you everything you need to know that changed since 1.1
     
  3. Offline

    ZeusAllMighty11

    It should now be:

    pm.registerEvents(new BlockListenerClass(), this);
     
  4. Offline

    Pinoyskii

    Thanks and what is the new code for entity damage entity.
     
  5. Offline

    Woobie

    Are you talking about the event?
    Code:
    public void onEntityDamage(EntityDamageByEntityEvent e){
    //stuff
     
Thread Status:
Not open for further replies.

Share This Page