Skip to content

Commit

Permalink
Reduce the default /mute time to two minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellLVP committed Oct 24, 2016
1 parent d7b35b5 commit cc49928
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pawn/Features/Gameplay/Commands/Mute/MuteCommands.pwn
Expand Up @@ -25,7 +25,7 @@ class MuteCommands {
return 0; return 0;


if (Command->parameterCount(params) == 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."); SendClientMessage(playerId, Color::Information, " When no duration is given, the player will be muted permanently.");
return 1; return 1;
} }
Expand All @@ -39,11 +39,11 @@ class MuteCommands {
return 1; return 1;
} }


new duration = 3 /* default value */; new duration = 2 /* default value */;
if (Command->parameterCount(params) >= 2) { if (Command->parameterCount(params) >= 2) {
duration = Command->integerParameter(params, 1); duration = Command->integerParameter(params, 1);
if (duration < -1 || duration > 300) if (duration < -1 || duration > 300)
duration = 3; duration = 2;
} }


MuteManager->mutePlayer(offenderId, duration); MuteManager->mutePlayer(offenderId, duration);
Expand Down Expand Up @@ -163,7 +163,7 @@ class MuteCommands {
*/ */
@switch(RemoteCommand, "mute") @switch(RemoteCommand, "mute")
public onRemoteMuteCommand(params[]) { public onRemoteMuteCommand(params[]) {
new admin[15], offenderId, duration = 3; new admin[15], offenderId, duration = 2;
Command->stringParameter(params, 0, admin, sizeof(admin)); Command->stringParameter(params, 0, admin, sizeof(admin));
offenderId = Command->integerParameter(params, 1); offenderId = Command->integerParameter(params, 1);


Expand Down

0 comments on commit cc49928

Please sign in to comment.