zio fork 1.8.2b-zio10: rank tags match CS2-Tags, log rank changes to sa_rank_log
This commit is contained in:
parent
cf1090cbd2
commit
f46ccf18ce
5 changed files with 100 additions and 17 deletions
|
|
@ -158,21 +158,21 @@ internal static class Helper
|
|||
return check.CanExecuteCommand(player);
|
||||
}
|
||||
|
||||
// zio: rank groups, highest first, and their chat abbreviations. Guardian (VIP) is last, so a
|
||||
// staff rank wins.
|
||||
// zio: rank groups, highest first, and their chat tags (the same as CS2-Tags' chat prefixes).
|
||||
// Guardian (VIP) is last, so a staff rank wins.
|
||||
private static readonly (string Group, string Tag)[] StaffRanks =
|
||||
[
|
||||
("#rank/owner", "O"),
|
||||
("#rank/senioradmin", "SA"),
|
||||
("#rank/admin", "A"),
|
||||
("#rank/trialadmin", "TA"),
|
||||
("#rank/mod", "M"),
|
||||
("#rank/trialmod", "TM"),
|
||||
("#rank/helper", "H"),
|
||||
("#rank/guardian", "G"),
|
||||
("#rank/senioradmin", "S.Admin"),
|
||||
("#rank/admin", "Admin"),
|
||||
("#rank/trialadmin", "T.Admin"),
|
||||
("#rank/mod", "Mod"),
|
||||
("#rank/trialmod", "T.Mod"),
|
||||
("#rank/helper", "Helper"),
|
||||
("#rank/guardian", "Guardian"),
|
||||
];
|
||||
|
||||
// zio: the player's highest rank abbreviation, or null if they're in no rank group.
|
||||
// zio: the player's highest rank tag, or null if they're in no rank group.
|
||||
internal static string? GetStaffRankTag(CCSPlayerController player)
|
||||
{
|
||||
var groups = AdminManager.GetPlayerAdminData(new SteamID(player.SteamID))?.Groups;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue