From 237c71ceed805446ae79018a7a59d591377b05af Mon Sep 17 00:00:00 2001 From: Mikhail Reznichenko Date: Sun, 21 Jul 2024 22:06:35 +0300 Subject: [PATCH] BUO fix + vudmood args count fix --- Commands/Spawnbuo.cs | 4 ++-- Commands/VudMood.cs | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Commands/Spawnbuo.cs b/Commands/Spawnbuo.cs index b793c99..06c197f 100644 --- a/Commands/Spawnbuo.cs +++ b/Commands/Spawnbuo.cs @@ -25,9 +25,9 @@ public bool Execute(ArraySegment arguments, ICommandSender sender, out s response = "Режим FX не включён"; return false; } - if (arguments.Count < 2) + if (arguments.Count < 1) { - response = "Формат команды: spawnbuo ."; + response = "Формат команды: spawnbuo "; return false; } VeryUsualDay.Instance.BuoCounter += 1; diff --git a/Commands/VudMood.cs b/Commands/VudMood.cs index 264c667..5be24d3 100644 --- a/Commands/VudMood.cs +++ b/Commands/VudMood.cs @@ -11,6 +11,7 @@ public class VudMood : ICommand public string Command => "vudmood"; public string[] Aliases => new string[] { }; public string Description => "Для FX. Изменяет состояние игрока. Использование: vudmood <новое состояние>"; + public bool SanitizeResponse => false; public bool Execute(ArraySegment arguments, ICommandSender sender, out string response) { @@ -19,6 +20,11 @@ public bool Execute(ArraySegment arguments, ICommandSender sender, out s response = "Режим FX не включён."; return false; } + if (arguments.Count < 1) + { + response = "Использование: vudmood <новое состояние>"; + return false; + } var args = arguments.ToArray(); if (!Player.TryGet(args[0], out var player)) {