Staff command that moves players into another faction, named by its whole ID or name.

Summary

Methods

Returns the translated command description with every registered faction ID listed.
Moves every target into the faction and notifies the targets and staff.

Methods

Returns the translated command description with every registered faction ID listed.

Returns

  • String

CMD:on_run(actor, targets, name)

shared plugins/factions/plugin/commands/sh_setfaction.lua:29

Moves every target into the faction and notifies the targets and staff. Targets without a character are skipped, and so are those whose transfer is refused by Factions.can_transfer; the actor is told the reason of every refusal.

Parameters

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

Defined in