API: Create custom flags
LadyCailinBot opened this issue ยท 3 comments
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 :)
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 :)