EngineHub / WorldGuard

🛡️ Protect your Minecraft server and lets players claim areas
https://enginehub.org/worldguard/
Other
836 stars 545 forks source link

Custom entry flag registry #2064

Closed Rosstail closed 9 months ago

Rosstail commented 9 months ago

The Problem

Hi there.

I would like to make flags affect players but it seems flags can only target all owner/member players or some being part of a permission group and nothing more.

A Solution

The solution would be the possibility to add custom flags entry with an id/name.

Exemple, I want a flag that target players in a Nodewar Team (one of my plugins team), the entry id/name would be something like nw_<teamname>.

I tried some things before posting this issue (check the Anything Else section). Since I already made some custom flags with WG API, I know that flags are really "rigged" in that way and I don't think you could do this feature without breaking everything ^^'.

Alternatives

No response

Anything Else?

I am working to rework on a territory/team plugin based on Worldguard regions.

I use Regions for:

In order to make my teams compatible with the group entry flags, I've decided to use VaultAPI (compatible with many permission plugins) in order to create these groups to assign to players joining/creating a team (I cannot give group to a player through VaultAPI if the group doesn't exist).

But, it seems Vault seems not being able to create groups through code. And commands are not reliable since many perms plugin exist. (Plus the async command -> give group to player)

wizjany commented 9 months ago

this is already #1866, though dunno when 7.1 will be a thing.