Cancel WorldGuard event

Discussion in 'Plugin Development' started by JoostLab, Oct 11, 2015.

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

    JoostLab

    My plugin allows players to PVP in a WorldGuard region with PVP deny flag, but the players still receive the default WorldGuard messages: "Hey! Sorry, but you can't PvP here.".

    Even code:
    public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
    // Cancel worldguard message
    }


    I already use the WorldGuard dependency.
     
  2. Offline

    boomboompower

    @JoostLab There is a flag to change the message.
     
  3. Offline

    JoostLab

    But how can I do this?
     
  4. Online

    timtower Administrator Administrator Moderator

    @JoostLab Why do you let them PVP in a deny region? Why not just put a region with allow in the bigger one?
     
  5. Offline

    boomboompower

  6. Offline

    JoostLab

    Thanx boom, I'll take a look.
    Tim, because my plugin has to override worldguard when a specific condition is true.
     
  7. Offline

    boomboompower

    @JoostLab If I remember worldguard off my head, I think the command is
    Code:
    /region flag REGIONNAME deny-message &0
     
  8. Offline

    JoostLab

    This is not what I am looking for, I need to cancel the WorldGuard PVP message using code, because it is only triggered when a condition is true.
    The command would always set the deny-message.
     
  9. Offline

    boomboompower

    @JoostLab Im out. Not going to even try doing stuff with WorldGuard xD
     
  10. Offline

    JoostLab

    sq89q did a well job on developing a plugin, but his documentation seriously lacks information that would be great to have....
     
  11. Offline

    KingPsychopath

    bump I need a method to remove the messages as well.
    A duel plugin, in a safezone(pvp deny) region would allow PVP in the region but the message would be constant...
     
Thread Status:
Not open for further replies.

Share This Page