* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
32 lines
902 B
C#
32 lines
902 B
C#
#nullable enable
|
|
using Content.Server.Administration;
|
|
using Content.Server.Interfaces.Chat;
|
|
using Robust.Server.Player;
|
|
using Robust.Shared.Console;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Content.Server.Commands.Chat
|
|
{
|
|
[AnyCommand]
|
|
internal 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)
|
|
{
|
|
var player = shell.Player as IPlayerSession;
|
|
if (args.Length < 1)
|
|
return;
|
|
|
|
var message = string.Join(" ", args).Trim();
|
|
if (string.IsNullOrEmpty(message))
|
|
return;
|
|
|
|
var chat = IoCManager.Resolve<IChatManager>();
|
|
chat.SendOOC(player, message);
|
|
}
|
|
}
|
|
}
|