Groups

Players, Groups, Groups of Players and Groups of Groups...

Drustcrafts permissions, while support players directly, does also support groups of players. Using player groups instead of players directly can reduce the amount of support time required, and sometimes it is required to acheive the outcome you desire.

Groups have both owners and members. Owners have full rights and privledges over the group while members, cannot modify the group, including themselves.

Typically support staff will be the owners of the group, while participants will be members.

Create

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- run drustcraft.group.create def:<group-name>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Remove

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- run drustcraft.group.remove def:<group-name>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Add Owner

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- run drustcraft.group.add_owner def:<group-name>|<player>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Remove Owner

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- run drustcraft.group.remove_owner def:<group-name>|<player>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Add Member

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- run drustcraft.group.add_member def:<group-name>|<player>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Remove Member

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- run drustcraft.group.remove_member def:<group-name>|<player>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Is Owner

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- <proc[drustcraftp.group.is_owner].context[<group-name>|<player>]>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Owners

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- <proc[drustcraftp.group.owners].context[<group-name>]>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Is Member

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- <proc[drustcraftp.group.is_member].context[<group-name>|<player>]>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Members

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- <proc[drustcraftp.group.members].context[<group-name>]>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Exists

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- <proc[drustcraftp.group.exists].context[<group-name>]>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

List

Command
Scripting
Command

/kit create <id> [mode] [-i]

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • -i will set the kits contents to the items in your inventory

Scripting

- <proc[drustcraftp.group.list]>

Creates a new kit with a given ID and adds an optional kit mode (see Kit Modes)

Kit IDs are case-insensitive. Only one kit can exist with a given id.

  • items A list of items to use to set the kits contents.

Determinations

  • err_not_permitted - Player does not have permission for this command

  • err_id_missing - No kit id was passed to the task

  • err_id_exists - Kit id already exists

  • err_kit_mode_invalid - Kit mode is not a valid mode (see Kit Modes)

Creating a group

In game
Scripting
In game

You can create a group in-game using the command /group create <group-id>.

The group id must be unique, can only contains alphanumeric characters and should start with an abbreviation of your organisation.

When you create a group, you will automatically become an owner of that group.

Scripting

You can create a group using the task:

- run drustcraft.group.add def:<group-id>

You can check to see if the group creation was successful by checking the tasks determination was true using a save argument or that the group now exists.

- ~run drustcraft.group.add def:mygroup save:result
- if <entry[result].created_queue.determination.first||false>:
- narrate Success
- else:
- narrate Failed

/group list

/group create <id>
/group remove <id>
/group info <id>
/group addmember <id> <player>
/group remmember <id> <player>
/group addowner <id> <player>
/group remowner <id> <player>

/group members <id>

/group addplayer <id> <player>

/group remplayer <id> <player>