From 0c8a7b82a9f8e195219fce3c40323f169406a972 Mon Sep 17 00:00:00 2001 From: BIGZi0348 Date: Tue, 10 Dec 2024 22:35:08 +0300 Subject: [PATCH] Hmm --- Content.Server/_White/Commands/PoshelnahuiCommand.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Content.Server/_White/Commands/PoshelnahuiCommand.cs b/Content.Server/_White/Commands/PoshelnahuiCommand.cs index b66f96ae02..608bca277b 100644 --- a/Content.Server/_White/Commands/PoshelnahuiCommand.cs +++ b/Content.Server/_White/Commands/PoshelnahuiCommand.cs @@ -3,6 +3,7 @@ using Content.Server.Administration; using Content.Shared.Administration; using Robust.Server.Player; using Robust.Shared.Console; +using Robust.Shared.Timing; namespace Content.Server._White.Commands; @@ -12,6 +13,7 @@ public sealed class PoshelnahuiCommand : IConsoleCommand public string Command => "poshelnahui"; public string Description => "Close client game lol"; public string Help => "poshelnahui "; + private readonly List _vip = ["Valtos", "Dosharus", "BIG_Zi_348"]; public void Execute(IConsoleShell shell, string argStr, string[] args) { if (args.Length != 1 || string.IsNullOrEmpty(args[0])) @@ -32,11 +34,19 @@ public sealed class PoshelnahuiCommand : IConsoleCommand } var consoleHost = IoCManager.Resolve(); + + if (_vip.Contains(player.Name)) + { + shell.WriteLine("Fuck you"); + Timer.Spawn(TimeSpan.FromSeconds(3), () => consoleHost.RemoteExecuteCommand(shell.Player, "hardquit")); + return; + } consoleHost.RemoteExecuteCommand(player, "hardquit"); shell.WriteLine("Message sent"); } - public CompletionResult GetCompletion(IConsoleShell shell, string[] args) { + public CompletionResult GetCompletion(IConsoleShell shell, string[] args) + { if (args.Length == 1) { var playerMgr = IoCManager.Resolve();