The gag staff command: /gag add <player> <duration> [reason] mutes players in the OOC
and LOOC chats for a time, and /gag remove <player> lifts the mute. The mute is kept in
the player data as a real time, so it lasts through restarts and reconnects.
Summary
Subcommands
Mutes the target players in OOC chat for a duration and notifies them and the staff.
Lifts the OOC mute of the target players and notifies the staff.
Subcommands
add:on_run(actor, targets, duration, reason)
shared plugins/rpcommands/plugin/commands/sh_gag.lua:24Mutes the target players in OOC chat for a duration and notifies them and the staff. A duration that is not a time, or that comes to nothing (0 or 'permanent', which a ban time reads as 0), is refused: a mute always has an end.
Parameters
- actor Player player running the command; not valid when run from the server console
- targets List<Player> players to gag
- duration String gag duration, parsed like a ban time
- reason String optional, defaults to
nilthe gag reason, as it was typed
Lifts the OOC mute of the target players and notifies the staff.
Parameters
- actor Player player running the command; not valid when run from the server console
- targets List<Player> players to ungag