Skip to content

Commit 489544e

Browse files
committed
update version to 2.0.3
1 parent fc3e1ca commit 489544e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CustomCommands/CustomCommands.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace CustomCommands;
99
public partial class CustomCommands : BasePlugin, IPluginConfig<CustomCommandsConfig>
1010
{
1111
public override string ModuleName => "CustomCommands";
12-
public override string ModuleVersion => "2.0.2";
12+
public override string ModuleVersion => "2.0.3";
1313
public override string ModuleAuthor => "HerrMagic";
1414
public override string ModuleDescription => "Create your own commands per config";
1515

CustomCommands/Services/CooldownManager.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System.Text.Json;
22
using CounterStrikeSharp.API.Core;
3-
using CounterStrikeSharp.API.Modules.Entities.Constants;
43
using CustomCommands.Model;
5-
using Microsoft.Extensions.Logging;
64

75
namespace CustomCommands.Interfaces;
86

CustomCommands/Services/ReplaceTagsFunction.cs

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ public string ReplaceMessageTags(string input, CCSPlayerController player, bool
8383
{"{PLAYERS}",
8484
Utilities.GetPlayers().Count(u => u.PlayerPawn.Value != null && u.PlayerPawn.Value.IsValid).ToString() ?? "<PLAYERS not found>"}
8585
};
86+
87+
// Prevent vounrability by not replacing {PLAYERNAME} if safety is true/ServerCommands are being executed
8688
if (!safety)
8789
replacements.Add("{PLAYERNAME}", player.PlayerName ?? "<PLAYERNAME not found>");
8890

0 commit comments

Comments
 (0)