]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
add subtype to admin notice (#36640)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Wed, 16 Apr 2025 22:59:36 +0000 (00:59 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Apr 2025 22:59:36 +0000 (00:59 +0200)
Content.Server/Administration/Logs/AdminLogManager.cs
Resources/Locale/en-US/administration/admin-alerts.ftl

index 0df177347a731716afd8432f923ef62d465f40e6..1d6ff13a5a586df655f6d2ce575f32e07d829b27 100644 (file)
@@ -330,7 +330,12 @@ public sealed partial class AdminLogManager : SharedAdminLogManager, IAdminLogMa
                 var cachedInfo = adminSys.GetCachedPlayerInfo(new NetUserId(id));
                 if (cachedInfo != null && cachedInfo.Antag)
                 {
-                    logMessage += " [ANTAG: " + cachedInfo.CharacterName + "]";
+                    var subtype = Loc.GetString(cachedInfo.Subtype ?? cachedInfo.RoleProto.Name);
+                    logMessage = Loc.GetString(
+                        "admin-alert-antag-label",
+                        ("message", logMessage),
+                        ("name", cachedInfo.CharacterName),
+                        ("subtype", subtype));
                 }
             }
 
index dd6ea2d8926f2dfedf66a5ade25189fdf67f85c2..931c3766a7ece7c381747c1c1c26d1d34b28642b 100644 (file)
@@ -1,3 +1,4 @@
 admin-alert-shared-connection = {$player} is sharing a connection with {$otherCount} connected player(s): {$otherList}
 admin-alert-ipintel-blocked = {$player} was rejected from joining due to their IP having a {TOSTRING($percent, "P2")} confidence of being a VPN/Datacenter.
 admin-alert-ipintel-warning = {$player} IP has a {TOSTRING($percent, "P2")} confidence of being a VPN/Datacenter. Please watch them.
+admin-alert-antag-label = {$message} [ANTAG: {$name}, {$subtype}]