Command that changes the ranks of players in their factions. /rank promote <target> and /rank demote <target> move players one rank up or down: staff with the 'manage_ranks' permission may do that to anyone, other players only to those whom their own rank lets them promote or demote (see Factions.can_promote and Factions.can_demote). /rank set <target> <rank> puts players into a rank of their faction, named by its index, its ID or its name; it has a permission of its own, 'rank_set', for staff.

Summary

Subcommands

Moves every target that the actor may demote one rank down in their faction, and notifies the targets, staff and the actor.
Moves every target that the actor may promote one rank up in their faction, and notifies the targets, staff and the actor.
Puts every target into the rank of their faction that the second argument names, and notifies the targets and staff.

Subcommands

demote:on_run(actor, targets)

shared plugins/factions/plugin/commands/sh_rank.lua:145

Moves every target that the actor may demote one rank down in their faction, and notifies the targets, staff and the actor. The actor is told when nobody could be demoted.

Parameters

  • actor Player the player who ran the command
  • targets List<Player> players matched by the first command argument

promote:on_run(actor, targets)

shared plugins/factions/plugin/commands/sh_rank.lua:114

Moves every target that the actor may promote one rank up in their faction, and notifies the targets, staff and the actor. The actor is told when nobody could be promoted.

Parameters

  • actor Player the player who ran the command
  • targets List<Player> players matched by the first command argument

set:on_run(actor, targets, rank)

shared plugins/factions/plugin/commands/sh_rank.lua:72

Puts every target into the rank of their faction that the second argument names, and notifies the targets and staff. Targets without a character and targets whose faction has no such rank are left as they are; the actor is told when that is the case for every target.

Parameters

  • actor Player the player who ran the command
  • targets List<Player> players matched by the first command argument
  • rank String rank index, ID or name

Defined in