* - fix: Bees fix. * - fix: Transform transfers body type. * - fix: Chemcap is transfered on transform. * - fix: Gulag objective actual fix. * - fix: Fix escape with identity not working. * - tweak: Fixes & objective tweaks. * - tweak: More slowdown from ling armor.
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using Content.Server._Miracle.GulagSystem;
|
|
using Content.Server.Chat.Managers;
|
|
using Content.Shared.Administration;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Server.Chat.Commands
|
|
{
|
|
[AnyCommand]
|
|
internal sealed class OOCCommand : IConsoleCommand
|
|
{
|
|
public string Command => "ooc";
|
|
public string Description => "Send Out Of Character chat messages.";
|
|
public string Help => "ooc <text>";
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
if (shell.Player is not { } player)
|
|
{
|
|
shell.WriteError("This command cannot be run from the server.");
|
|
return;
|
|
}
|
|
|
|
var gulag = EntitySystem.Get<GulagSystem>();
|
|
if (gulag.IsUserGulagged(shell.Player.UserId, out var _))
|
|
{
|
|
return;
|
|
}
|
|
|
|
if (args.Length < 1)
|
|
return;
|
|
|
|
var message = string.Join(" ", args).Trim();
|
|
if (string.IsNullOrEmpty(message))
|
|
return;
|
|
|
|
IoCManager.Resolve<IChatManager>().TrySendOOCMessage(player, message, OOCChatType.OOC);
|
|
}
|
|
}
|
|
}
|