-
Notifications
You must be signed in to change notification settings - Fork 10
Group Handler
The Group handler is a standalone handler for protection zones. It enables membership of handler groups to be managed by permissions. It is available in FoxGuard version 0.20 and beyond, and replaces the old "permission" handler from earlier versions. A Group handler is very similar in structure to a Basic Handler, with its own groups, and allows you to specify separate flags for them, as well as non-members (ie default). All groups are passthrough by default, and are evaluated in the order they are listed (in the case of players in multiple groups).
Group handler has a click-to-edit interface. Use
/foxguard detail handler <name>
and hover over the colored text to see what you can do. Some buttons run commands immediately. Others suggest commands ask you to fill out the last parameter. Still others will suggest a command that is ready to run, but still needs confirmation.
/foxguard create handler <name> group
Group Handlers don't use parameters for their creation.
Group handlers have three modification sub-commands.
Format:
/foxguard modify handler <handlername> <arguments...> where arguments is as below. For example:
/foxguard modify handler BobsBuilders users members add Pilchard grannySmith Wendy
groups <add | remove | modify | rename | move> [groupnames]...
Modifies the handler's groups.
flags <groupname> <add | remove | set | move> [flags]... =<allow | deny | pass>
Sets one or more flags for a specific group. Don't forget the = prefix on the tristate value.
group modify <groupname> --p:<new.permission.string>
The permission string used for any group in a Group handler may be altered to your taste, within API limitations. This can allow the creation of root permissions that cover different sets of group handlers, if desired.
- Multiple Group handlers can be used in conjunction with each other, if desired.
- A low priority Group handler can be used to block all actions in an area by default, with other handlers of higher priority over-riding to allow specific actions.