From 0b306389d3a0bf8ddd9196cd02191f3a0fc10ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Schr=C3=B6dinger?= <132720404+Schrodinger71@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:06:10 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B0=D1=8E=20/a?= =?UTF-8?q?dmin/info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/Administration/ServerApi.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Content.Server/Administration/ServerApi.cs b/Content.Server/Administration/ServerApi.cs index 6a0bcbcf9a..08f99b25ba 100644 --- a/Content.Server/Administration/ServerApi.cs +++ b/Content.Server/Administration/ServerApi.cs @@ -489,7 +489,9 @@ Panic bunker status UserId = player.UserId.UserId, Name = player.Name, IsAdmin = adminData != null, - IsDeadminned = !adminData?.Active ?? false + IsDeadminned = !adminData?.Active ?? false, + PingUser = player.Ping, // ADT-Tweak: Передаём пинг пользователя + AdminTitle = adminData?.Title ?? "Null" // ADT-Tweak: Добавляем передачу инфы о Title админа }); } @@ -689,6 +691,8 @@ public sealed class Player public required string Name { get; init; } public required bool IsAdmin { get; init; } public required bool IsDeadminned { get; init; } + public required short PingUser { get; init; } // ADT-Tweak + public required string AdminTitle { get; init; } // ADT-Tweak } public sealed class MapInfo