Staff command that bans and unbans characters. /charban add <target> bans the active characters of one or more players: a banned character cannot be loaded or deleted by its player. /charban remove <character name> lifts the ban of a character by its exact name; the character does not have to be in use and its player does not have to be on the server.

Summary

Subcommands

Bans the active character of every target that has one and notifies staff.
Unbans every banned character whose name is exactly the given one, ignoring letter case and repeated whitespace, and notifies staff, or tells the caller that there is no such character or that it is not banned.

Subcommands

add:on_run(actor, targets)

shared plugins/characters/plugin/commands/sh_charban.lua:23

Bans the active character of every target that has one and notifies staff. Bots and characters that are already banned are skipped.

Parameters

  • actor Player the player who ran the command, or an invalid entity for the console
  • targets List<Player> players matched by the first command argument

remove:on_run(actor, text)

shared plugins/characters/plugin/commands/sh_charban.lua:62

Unbans every banned character whose name is exactly the given one, ignoring letter case and repeated whitespace, and notifies staff, or tells the caller that there is no such character or that it is not banned. The characters of connected players are looked up first, then the database.

Parameters

  • actor Player the player who ran the command, or an invalid entity for the console
  • text String the character name as it was typed; a pair of double quotes around all of it is left out

See also

Defined in