Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

улучшаю /admin/info #971

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Content.Server/Administration/ServerApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 админа
});
}

Expand Down Expand Up @@ -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
Expand Down
Loading