How do you cancel the WorldGuard Message on Block Break?

Discussion in 'Plugin Development' started by Cammy_the_block, Jun 30, 2015.

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

    Cammy_the_block

    Hey all!
    I am working on a minigames plugin of sorts and in certain instances players will be attempting to destroy or place certain blocks and I would like to stop the WorldGuard message of "Hey! Sorry, but you can't break that block here." I looked through the WorldGuard Javadocs, but couldn't find anything suitable. How can I do this?
    Thanks
     
  2. @Cammy_the_block This could either be a config thing, or it's hard coded into the plugin. Try looking through the config and see if there's an option for it. If not, I'm afraid you're out of luck.
     
  3. Offline

    Cammy_the_block

    I'm not trying to disable the message globally throughout the server. Instead I am trying to stop if from showing up on certain events, if that makes sense. For example, lets say a player tries to break a diamond block in a region that they are not allowed to build in, normally the plugin would send the player a message saying they can't do so. However, I'd like to make it so that when I detect that through a BlockPlaceEvent, that my plugin cancel's the message sent out to the player.

    If WorldGuard doesn't have a way to do this natively, I could set the flag so there is not message then, create the message myself and not send it in certain cases.
     
Thread Status:
Not open for further replies.

Share This Page