WorldGuard

WorldGuard

8M Downloads

API: Create custom flags

LadyCailinBot opened this issue ยท 3 comments

commented

WORLDGUARD-2527 - Reported by Maddis

Hi there,
I thought about how I would create some plugin ideas and scooped around in the Worldguard Wiki. What I found was the little notice that it's not possible to set custom flags via the API.
So I personally wish to be able to add new possible flags via the api to create region based plugins more easily.

Thanks and Greetings from Germany,
Maddis :)

commented

Comment by sk89q

It's in the plans :)

commented

Comment by Maddis

sounds super great :)
I would love to have api features that enable something like this:
onRegionEntry(Event e){
if (e.hasFlag("myCustomFlag")) e.getPlayer().sendMessage("You entered the Battleground"); // just an idea :P
}

Do you have any estimation about the "when"? ;)

Thanks :)

commented

Comment by wizjany

that is also already planned (PS that is possible with the greeting flag already)
we don't do ETAs really