Add group

Description

Add a group to the subject. The subject will then inherit of all the permissions, options and parents of the group.

Permission

permissionmanager.commands.subject.add.group.<parent>

Command

/pm <collection> <subject> add group <parent> [-s <server>] [-w <world>] [-t <seconds>]

Options

  • -s: The server where the subject will have the group.
  • -w: The world where the subject will have the group.
  • -t: How many time the subject will have the group. The time is in second.

Examples

Add a group to a player.
/pm user player_name add group parent_to_add

Add a group to a group.
/pm group group_name add group parent_to_add

Add a group to the default subject.
/pm default default add group parent_to_add

Add a group for 10 minutes.
/pm <collection> <subject> add group parent_to_add -t 600

Add a group for the world DIM1.
/pm <collection> <subject> add group parent_to_add -w DIM1

Add a group for a server. Only works if you have more than one server connected to your database.
/pm <collection> <subject> add group parent_to_add -s server_name

Add a group for the server test.permissionmanager.com in the world DIM-1 for 2 minutes.
/pm <collection> <subject> add group parent_to_add -s test.permissionmanager.com -w DIM-1 -t 120