From 03c56efa00de8c56e1d02a8a9d103bca9ed0026c Mon Sep 17 00:00:00 2001 From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 17 Feb 2025 23:39:12 +0300 Subject: [PATCH] New Feature: Votekick bans distinguish themselves as votekicks (#35258) * Feature * Localization --- Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs | 2 +- Resources/Locale/en-US/discord/vote-notifications.ftl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs b/Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs index 89f4acdef1..468bfdc0f8 100644 --- a/Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs +++ b/Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs @@ -544,7 +544,7 @@ namespace Content.Server.Voting.Managers uint minutes = (uint)_cfg.GetCVar(CCVars.VotekickBanDuration); - _bans.CreateServerBan(targetUid, target, null, targetIP, targetHWid, minutes, severity, reason); + _bans.CreateServerBan(targetUid, target, null, targetIP, targetHWid, minutes, severity, Loc.GetString("votekick-ban-reason", ("reason", reason))); } } else diff --git a/Resources/Locale/en-US/discord/vote-notifications.ftl b/Resources/Locale/en-US/discord/vote-notifications.ftl index f6779cac83..771d04aa8a 100644 --- a/Resources/Locale/en-US/discord/vote-notifications.ftl +++ b/Resources/Locale/en-US/discord/vote-notifications.ftl @@ -9,3 +9,5 @@ votekick-webhook-description = Initiator: { $initiator }; Target: { $target } votekick-webhook-cancelled-admin-online = **Vote cancelled due to admins online** votekick-webhook-cancelled-admin-target = **Vote cancelled due to target being admin** votekick-webhook-cancelled-antag-target = **Vote cancelled due to target being antag** + +votekick-ban-reason = "Votekick: {$reason}"