Skip to content

Hide region flags that users don't have access to #2260

Description

@Zaphara94

The Problem

The region flags pages are quite extensive, and especially with custom flags or other plugins adding flags, users can get lost in the sauce trying to find a flag they can set in the sea of total flags.

A Solution

I have a few solutions to this problem; one would be to add a hide permission node such as worldguard.region.flag.hidden. to remove the flag from the /rg flags list if they have the hidden permission. Alternatively, and the more clean option, if a user has any of the following:

    worldguard.region.flag.flags.<flag name>.<flag value>.own.<region name>
    worldguard.region.flag.flags.<flag name>.<flag value>.member.<region name>
    worldguard.region.flag.flags.<flag name>.<flag value>.<region name>

Then the user should see that flag and its options in /rg flags, else they can't see the flag in the list.

This would clean up the list significantly and help reduce clutter for the user, making it easier for players to access the flags that they actually have access to change.

Alternatives

No response

Anything Else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions