Permalink
Browse files

Reduce the default /mute time to two minutes

  • Loading branch information...
RussellLVP committed Oct 24, 2016
1 parent d7b35b5 commit cc49928982be0920c8d6096f0bef971a699d9d4c
Showing with 4 additions and 4 deletions.
  1. +4 −4 pawn/Features/Gameplay/Commands/Mute/MuteCommands.pwn
@@ -25,7 +25,7 @@ class MuteCommands {
return 0;
if (Command->parameterCount(params) == 0) {
SendClientMessage(playerId, Color::Information, "Usage: /mute [player] [duration=3 (-1 = permanent)]");
SendClientMessage(playerId, Color::Information, "Usage: /mute [player] [duration=2 (-1 = permanent)]");
SendClientMessage(playerId, Color::Information, " When no duration is given, the player will be muted permanently.");
return 1;
}
@@ -39,11 +39,11 @@ class MuteCommands {
return 1;
}
new duration = 3 /* default value */;
new duration = 2 /* default value */;
if (Command->parameterCount(params) >= 2) {
duration = Command->integerParameter(params, 1);
if (duration < -1 || duration > 300)
duration = 3;
duration = 2;
}
MuteManager->mutePlayer(offenderId, duration);
@@ -163,7 +163,7 @@ class MuteCommands {
*/
@switch(RemoteCommand, "mute")
public onRemoteMuteCommand(params[]) {
new admin[15], offenderId, duration = 3;
new admin[15], offenderId, duration = 2;
Command->stringParameter(params, 0, admin, sizeof(admin));
offenderId = Command->integerParameter(params, 1);

0 comments on commit cc49928

Please sign in to comment.