Solved mcMMO help

Discussion in 'Plugin Development' started by MrAwellstein, Sep 1, 2014.

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

    MrAwellstein

    So here is my problem. In mcMMO, there is this event, EntityDamageByEntityEvent, which ignores being cancelled for what ever reason and is the highest priority. This is preventing me from using my pvp toggle aspect of my plugin, meaning that players who have pvp toggled off can still be hurt by mcMMO skills and abilities. What should I do?
    Code:java
    1. @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
    2. public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
    3.  
     
  2. Offline

    xTigerRebornx

    MrAwellstein You are confused about what ignoredCancelled does, it doesn't ignore being canceled, Bukkit will "ignore"/not call it if the event is cancelled. Simply listen to a lower priority (or even multiple listeners on multiple priorities) to be able to block it on all levels.
     
  3. Offline

    MrAwellstein


    Ah okay. thanks.
     
Thread Status:
Not open for further replies.

Share This Page