Solved Event Priority

Discussion in 'Plugin Development' started by mydeblob, Sep 23, 2013.

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

    mydeblob

    Is it possible to set a event priority above "Highest"? I have created a plugin that cancels the players drops, but it is incompatible with CombatLog from bukkit. The reason with this is because when a player logs out in combat the listener in CombatLog also has Highest priority (I checked), therefore dropping the players items while in combat and disconnected. So how could I bypass this?
    Thanks!
     
  2. Offline

    Mitsugaru

    Uh, highest means it goes last.... If you change it to something lower, for instance normal, you should be able to cancel it then without conflict with other plugins... because proper listeners should be checking if an event is already cancelled or not, and ignoring when necessary.

    And if CombatLog doesn't check the cancelled state of the event, go poke the developers to make the change. After that, it should work out.
     
  3. Offline

    mydeblob

    Mitsugaru
    My brain always mixes up the highest with lowest with the bukkit api, lol. Thanks!
     
Thread Status:
Not open for further replies.

Share This Page