Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
ntm5 authored Jul 6, 2024
1 parent 221fcc0 commit 0f5ab8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/TTT.Roles/Helper/ChatManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ public class ChatManager(IRoleService roleService) : IPluginBehavior
{
public void Start(BasePlugin plugin)
{
return;
plugin.AddCommandListener("say_team", OnSayTeam);
}

private HookResult OnSayTeam(CCSPlayerController? caller, CommandInfo info)
{

if (caller == null || !caller.IsValid) return HookResult.Continue;
var role = roleService.GetRole(caller);
switch (role)
Expand Down Expand Up @@ -48,4 +50,4 @@ private HookResult OnSayTeam(CCSPlayerController? caller, CommandInfo info)

return HookResult.Handled;
}
}
}

0 comments on commit 0f5ab8f

Please sign in to comment.