Skip to content

Commit

Permalink
Fix mute
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Jul 6, 2024
1 parent acbfaf8 commit ee30832
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions mod/Jailbreak.Mute/MuteSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ public void Start(BasePlugin parent)

this.messages = provider.GetRequiredService<IPeaceMessages>();
this.warden = provider.GetRequiredService<IWardenService>();

parent.RegisterListener<Listeners.OnClientVoice>(OnPlayerSpeak);
}

[GameEventHandler]
Expand Down
10 changes: 2 additions & 8 deletions mod/Jailbreak.Warden/Commands/WardenCommandsBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ public void Command_Fire(CCSPlayerController? player, CommandInfo command)
return;
}

// Handle warden pass
_notifications.FIRE_WARDEN(player)
.ToAllChat()
.ToAllCenter();

// GetPlayers() returns valid players, no need to error check here.
foreach (var client in Utilities.GetPlayers().Where(p => p.IsReal()))
{
if (AdminManager.PlayerHasPermissions(client, "@css/chat"))
Expand All @@ -103,10 +97,10 @@ public void Command_Fire(CCSPlayerController? player, CommandInfo command)

_notifications.BECOME_NEXT_WARDEN.ToAllChat();

_lastPassCommand[_warden.Warden] = DateTime.Now;

if (!_warden.TryRemoveWarden(true))
Server.PrintToChatAll("[BUG] Couldn't remove warden :^(");

_lastPassCommand[_warden.Warden] = DateTime.Now;
}

[ConsoleCommand("css_warden",
Expand Down

0 comments on commit ee30832

Please sign in to comment.