From 2a1ef7b48903198baf4d04ce20231609cea7504b Mon Sep 17 00:00:00 2001 From: rogeraabbccdd Date: Wed, 3 Jul 2024 00:47:10 +0800 Subject: [PATCH] Fixed OnCommandRefresh conditions --- Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands.cs b/Commands.cs index bb6d0ab4..fd42b134 100644 --- a/Commands.cs +++ b/Commands.cs @@ -11,7 +11,7 @@ namespace WeaponPaints { private void OnCommandRefresh(CCSPlayerController? player, CommandInfo command) { - if (Config.Additional.CommandsRefresh.Count > 0 || !Config.Additional.SkinEnabled || !g_bCommandsAllowed) return; + if (Config.Additional.CommandsRefresh.Count == 0 || !Config.Additional.SkinEnabled || !g_bCommandsAllowed) return; if (!Utility.IsPlayerValid(player)) return; if (player == null || !player.IsValid || player.UserId == null || player.IsBot) return;