Solved mcMMO help

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

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


    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?
    1. @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
    2. public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
  2. Offline


    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


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

Share This Page