fix: фикс чатбабла культа

This commit is contained in:
Remuchi
2024-01-28 16:31:58 +07:00
parent 8a991f08f1
commit 899d6cf698
3 changed files with 192 additions and 81 deletions

View File

@@ -1,11 +1,8 @@
using Content.Server.Chat.Systems;
using Content.Shared.Administration;
using Content.Shared.Chat;
using Content.Shared.White.Cult;
using Robust.Server.Player;
using Robust.Shared.Console;
using Robust.Shared.Enums;
using Robust.Shared.Player;
namespace Content.Server.Chat.Commands
{
@@ -13,7 +10,9 @@ namespace Content.Server.Chat.Commands
internal sealed class CultCommand : IConsoleCommand
{
public string Command => "csay";
public string Description => "Send cult message";
public string Help => "csay <text>";
public void Execute(IConsoleShell shell, string argStr, string[] args)
@@ -43,7 +42,9 @@ namespace Content.Server.Chat.Commands
var message = string.Join(" ", args).Trim();
if (string.IsNullOrEmpty(message))
return;
EntitySystem.Get<ChatSystem>().TrySendInGameOOCMessage(entity, message, InGameOOCChatType.Cult, false, shell, player);
entityManager.System<ChatSystem>()
.TrySendInGameOOCMessage(entity, message, InGameOOCChatType.Cult, false, shell, player);
}
}
}