The Role command sets and removes the roles of players. Both subcommands need the role
permission. /role set <target> <role> sets the role of the targeted players to a role,
named by its ID or its name, exactly but in any case. /role remove <target or SteamID> sets
the role of the targeted players back to user; given a SteamID that belongs to nobody on
the server, it changes the role that is stored for that SteamID instead, so that staff
members can be demoted while they are away.
role remove finds its targets itself instead of setting immunity, because the command
interpreter only knows the players who are on the server.
Summary
Subcommands
Subcommands
Demotes the targeted players, or the owner of a SteamID who is not on the server, to the 'user' role and notifies them and staff. The caller needs a higher immunity than every target; for a SteamID that goes by the role stored for it.
Parameters
- actor Player the caller, or an invalid entity when run from the server console
- target String exact player name, target selector or SteamID
Returns the translated description of the subcommand with the list of existing role IDs filled in.
Returns
- String
Sets the role of the targeted players and notifies them and staff, or tells the caller that
the role does not exist. A caller can only give a role whose immunity is not higher than
that of their own role, see Bolt:check_role_immunity.
Parameters
- actor Player the caller, or an invalid entity when run from the server console
- targets List<Player> players whose role is set
- role_name String role ID or role name