The Warn command sends the targeted players a warning with the given reason.

Summary

Methods

Sends a warning with the given reason to the targeted players and notifies staff.

Methods

CMD:on_run(actor, targets, reason)

shared plugins/admin/plugin/commands/sh_warn.lua:16

Sends a warning with the given reason to the targeted players and notifies staff.

Parameters

  • actor Player the caller, or an invalid entity when run from the server console
  • targets List<Player> players to warn
  • reason String optional, defaults to nil the warning reason, as it was typed

Defined in