Skip to content

Commit

Permalink
Fix css_plugins commands number of args check (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
abnerfs authored Jan 19, 2024
1 parent 204850f commit 765c56a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions managed/CounterStrikeSharp.API/Core/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private void OnCSSPluginCommand(CCSPlayerController? caller, CommandInfo info)
case "start":
case "load":
{
if (info.ArgCount < 2)
if (info.ArgCount < 3)
{
info.ReplyToCommand(
"Valid usage: css_plugins start/load [relative plugin path || absolute plugin path] (e.g \"TestPlugin\", \"plugins/TestPlugin/TestPlugin.dll\")\n",
Expand Down Expand Up @@ -195,7 +195,7 @@ private void OnCSSPluginCommand(CCSPlayerController? caller, CommandInfo info)
case "stop":
case "unload":
{
if (info.ArgCount < 2)
if (info.ArgCount < 3)
{
info.ReplyToCommand(
"Valid usage: css_plugins stop/unload [plugin name || #plugin id] (e.g \"TestPlugin\", \"1\")\n",
Expand All @@ -218,7 +218,7 @@ private void OnCSSPluginCommand(CCSPlayerController? caller, CommandInfo info)
case "restart":
case "reload":
{
if (info.ArgCount < 2)
if (info.ArgCount < 3)
{
info.ReplyToCommand(
"Valid usage: css_plugins restart/reload [plugin name || #plugin id] (e.g \"TestPlugin\", \"#1\")\n",
Expand Down

0 comments on commit 765c56a

Please sign in to comment.