MSP's mute command is apparently really bad, and I decided against using
CSCS to create a new one.
I attempted to make it look as default as possible, even going as far as preventing
serverCmdStartTalking from functioning (optionally) on muted players.
Command syntax is
/mute victim minutes, the victim does not have to be on the server. Names will work if the victim is on the server, while BL_ID will always work.
Features:- Mutes remain persistent after restarts.
- Blue names in the upper-left corner can optionally be prevented from working on muted players (their name will not show up when they're typing a message). By default, it is prevented from working.
- Permanent muting can be used by using -1 for the amount of minutes.
- Victims do not have to be on the server to be muted
- Mutes do not have to be announced, they are by default.
Variables:- $Mute::Core::Config
- Configuration location
- config/server/mute/config.cs by default.
- $Mute::Core::SaveDir
- Muted player data goes here, this is where the DB will fetch muted players on server start.
- config/server/mute/saves by default.
- $Mute::Server::Announce
- Option to announce mutes.
- 1 by default.
- $Mute::Server::AllowRank
- Who is able to use the command.
- Admin by default
- Options include
- Moderator*
- *Must use %client.isModerator, wasn't sure what to actually use here so I just assumed the standard.
- Admin
- Super Admin
- Host
- $Mute::Server::AllowIsTyping
- Option to enable/disable muted player's blue name in the upper left.
- 1 by default.
I'll add RTB prefs by demand, considering it's supposed to be dead and there's no replacement for it.
Testing repository currently has a shadow mute option, set
$Mute::Server::Shadow to
1 to try it out. The stable version does not currently have this option.