Skip to content

Commit 69fb2f6

Browse files
committed
Added new tag USERID
1 parent 288917b commit 69fb2f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CustomCommands/Services/ReplaceTagsFunction.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@ public string ReplaceLanguageTags(string input)
6464
public string ReplaceMessageTags(string input, CCSPlayerController player)
6565
{
6666
SteamID steamId = new SteamID(player.SteamID);
67-
67+
6868
Dictionary<string, string> replacements = new()
6969
{
7070
{"{PREFIX}", PluginGlobals.Config.Prefix ?? "<PREFIX not found>"},
7171
{"{MAP}", NativeAPI.GetMapName() ?? "<MAP not found>"},
7272
{"{TIME}", DateTime.Now.ToString("HH:mm:ss") ?? "<TIME not found>"},
7373
{"{DATE}", DateTime.Now.ToString("dd.MM.yyyy") ?? "<DATE not found>"},
7474
{"{PLAYERNAME}", player.PlayerName ?? "<PLAYERNAME not found>"},
75+
{"{USERID}", player.UserId.ToString() ?? "<USERID not found>"},
7576
{"{STEAMID2}", steamId.SteamId2 ?? "<STEAMID2 not found>"},
7677
{"{STEAMID3}", steamId.SteamId3 ?? "<STEAMID3 not found>"},
7778
{"{STEAMID32}", steamId.SteamId32.ToString() ?? "<STEAMID32 not found>"},

0 commit comments

Comments
 (0)