The Kick command kicks the targeted players from the server, with an optional reason.

Summary

Methods

Kicks the targeted players with an optional reason, translated to the language of each player, and notifies staff.

Methods

CMD:on_run(actor, targets, reason)

shared plugins/admin/plugin/commands/sh_kick.lua:17

Kicks the targeted players with an optional reason, translated to the language of each player, and notifies staff.

Parameters

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

Defined in