Solved How to set the "greeting" flag to a region with WorldGuard

Discussion in 'Spigot Plugin Development' started by Sami2EaCOS, Jul 11, 2018.

  1. Hello,

    I'm using Worldguard for my plugin (in dependency) but i can't found how to set the greeting flag to a region.

    The methods "setFlags()" is the good method ? how to use her so ?

    Thanks for reply !
  2. Create the region you want to set the greeting flag in. To create a region, select 2 positions just like if you are using WorldEdit, then do /rg create <any name you want the region to be called>. Next, you will want to do /rg flag <region name> greeting <greeting you want in the region>
    • Funny Funny x 1
  3. i want to use flag into my plugin :-/
  4. Oh, nvm. I am not a plugin Dev.
  5. Maybe this?
    Code (Text):
    region.setFlag(DefaultFlag.GREET_MESSAGE, "Hi there!");
  6. Thanks for help guys !!!