diff --git a/Commands.cs b/Commands.cs index 23425387..60cf86ce 100644 --- a/Commands.cs +++ b/Commands.cs @@ -157,6 +157,10 @@ public partial class WeaponPaints private void OnCommandSkinRefresh(CCSPlayerController? player, CommandInfo command) { if (!Config.Additional.CommandWpEnabled || !Config.Additional.SkinEnabled || !_gBCommandsAllowed) return; + if (player != null) + { + return; + } var args = command.GetArg(1); @@ -1023,4 +1027,4 @@ public partial class WeaponPaints }); }); } -} \ No newline at end of file +}