Group - Nononitas/Plugin-Hide-Pro GitHub Wiki

Groupname

Each group needs a different groupname.

To add a specific group to a user, add the permission plhide.group.{groupname}. If a player has 2 groups permissions, then the group is set depending on the priority (the higher the number, the higher the priority). If they have the same priority booth groups will be applied (they get merged) With the Bungeecord/Velocity plugin you can also choose on which servers the groups should be used.

Commands/Tabcomplete

Commands are whitelisted by default. Use the following syntax to manage allowed/blocked commands:

  • List commands/subcommands to whitelist them.
  • Use "!command" to explicitly block a command (negation). The quotation marks are necessary!
  • Use "*" to whitelist all commands (the quotation marks are necessary!), then block specific ones with !.

Negated entries take priority over non-negated ones.

Examples:

  • cmd test + "!cmd test admin": Allows /cmd test but blocks /cmd test admin.
  • "*" + "!warp": Whitelists all commands except /warp.

Enabled Servers

If you are using the Bungeecord/Velocity plugin, there is another list called enabled_servers. Here you add the server names on which the group is enabled. The default value is "all". Regex is also supported.

Servers

This option is only available if using the Bungeecord/Velocity version Here you can add server names to have different commands/tabcomplete on different servers

  example:
    servers:
      #If no matching server could be found (for example creative) this key will be used.
      fallback:
        commands: [ ]
        tabcomplete: [ ]
      #Commands listed here will be added to servers where the name starts with "Lobby-" (for example "Lobby-1", "Lobby-230")
      "Lobby-.*":
        commands: [ ]
        tabcomplete: [ ]
      #Commands listed here will only be added to the server with the name "Survival"
      Survival:
        commands: [ ]
        tabcomplete: [ ]
      #Commands listed here will be added to every other server automatically. This key (all) is optionally
      all:
        commands: [ ]
        tabcomplete: [ ]
      #Option for which servers the group should be enabled
    enabled_servers:
      - all
    priority: 1
    blocked-command-message: "Unknown command. Type \"/help\" for help."
    inherited-groups: [ ]

Inheritance

In the "inherited-groups" section you can add other groups. The commands and tab completion from the "inherited groups" will be added to this group. Inheritance is recursive (e.g., if Group A inherits Group B, which inherits Group C, Group A includes all Group B and Group C)

Group merging

A player can also have multiple parent groups at the same time: If two or more groups have the same priority and the player has permission for them, all groups for which the player has permission will be applied