Staff command that sets the name of a player's character.

Summary

Methods

Sets the name of the first target's character and notifies staff.

Methods

CMD:on_run(actor, targets, name)

shared plugins/characters/plugin/commands/sh_charsetname.lua:17

Sets the name of the first target's character and notifies staff. The name is refused when it is empty or another character already has it.

Parameters

  • actor Player the player who ran the command
  • targets List<Player> players matched by the first command argument
  • name String the new name as it was typed; a pair of double quotes around all of it is left out and runs of whitespace become single spaces

Defined in