Skip to content

Commit

Permalink
BUO fix + vudmood args count fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JustMarfix committed Jul 21, 2024
1 parent 3203c67 commit 237c71c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Commands/Spawnbuo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
response = "Режим FX не включён";
return false;
}
if (arguments.Count < 2)
if (arguments.Count < 1)
{
response = "Формат команды: spawnbuo <id через пробел>.";
response = "Формат команды: spawnbuo <id через пробел>";
return false;
}
VeryUsualDay.Instance.BuoCounter += 1;
Expand Down
6 changes: 6 additions & 0 deletions Commands/VudMood.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class VudMood : ICommand
public string Command => "vudmood";
public string[] Aliases => new string[] { };
public string Description => "Для FX. Изменяет состояние игрока. Использование: vudmood <id> <новое состояние>";
public bool SanitizeResponse => false;

public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
Expand All @@ -19,6 +20,11 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
response = "Режим FX не включён.";
return false;
}
if (arguments.Count < 1)
{
response = "Использование: vudmood <id> <новое состояние>";
return false;
}
var args = arguments.ToArray();
if (!Player.TryGet(args[0], out var player))
{
Expand Down

0 comments on commit 237c71c

Please sign in to comment.