Staff command that manages the faction whitelists of players. /whitelist add <target> <faction> whitelists players for a faction and /whitelist remove <target> <faction> takes that whitelist away again. The faction is named by its whole ID or name.

Summary

Subcommands

Whitelists every target for a faction and notifies the targets and staff.
Takes the whitelist for a faction away from every target that has it and notifies those targets and staff.

Subcommands

add:on_run(actor, targets, faction_id)

shared plugins/factions/plugin/commands/sh_whitelist.lua:20

Whitelists every target for a faction and notifies the targets and staff.

Parameters

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

remove:on_run(actor, targets, faction_id)

shared plugins/factions/plugin/commands/sh_whitelist.lua:52

Takes the whitelist for a faction away from every target that has it and notifies those targets and staff.

Parameters

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

Defined in