mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* button to new ui * text box and button * change size * get the current round * turn into a command * fix round id not updating * button to send log send message to server * send message to discord * use another cvar * general fixes * update event webhook * use a place holder * fix placeholder * update button name Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com> * move to a separate folder * turn into a fancy window * add margin * center text in the button * move reset button to the left * update the window * move send button to the left * update color * remove indentation * set sawmill inside PostInject * remove random newline * move PostInject to start of the class * use darkViolet * summary * remove whitespace * comment --------- Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com>
26 lines
768 B
C#
26 lines
768 B
C#
using Content.Server.Administration.AdminEventLog;
|
|
using Content.Server.EUI;
|
|
using Content.Shared.Administration;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Server.Administration.Commands;
|
|
|
|
[AdminCommand(AdminFlags.Admin)]
|
|
public sealed partial class OpenAdminEventLogCommand : LocalizedCommands
|
|
{
|
|
[Dependency] private EuiManager _euiManager = default!;
|
|
|
|
public override string Command => "eventlog";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
if (shell.Player is not { } player)
|
|
{
|
|
shell.WriteError(Loc.GetString("shell-cannot-run-command-from-server"));
|
|
return;
|
|
}
|
|
|
|
var ui = new AdminEventLogEui();
|
|
_euiManager.OpenEui(ui, player);
|
|
}
|
|
}
|