diff --git a/mod/TTT.Roles/Helper/ChatManager.cs b/mod/TTT.Roles/Helper/ChatManager.cs index ef84c52..1eabbc3 100644 --- a/mod/TTT.Roles/Helper/ChatManager.cs +++ b/mod/TTT.Roles/Helper/ChatManager.cs @@ -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) @@ -48,4 +50,4 @@ private HookResult OnSayTeam(CCSPlayerController? caller, CommandInfo info) return HookResult.Handled; } -} \ No newline at end of file +}