diff --git a/src/BedWars/command/DefaultCommand.php b/src/BedWars/command/DefaultCommand.php index 125e64f..5a5cec1 100644 --- a/src/BedWars/command/DefaultCommand.php +++ b/src/BedWars/command/DefaultCommand.php @@ -36,7 +36,7 @@ class DefaultCommand extends \pocketmine\command\Command 'setpos' => ['desc' => "Set spawn & shop positions", 'usage' => " <1|2|3> - 3 = Player Spawn, 2 = Upgrade Shop, 1 = Item Shop"], 'addgenerator' => ['desc' => "Add generator", 'usage' => " "], 'setbed' => ['desc' => "Set team's bed", 'usage' => " "], - 'addsafearea' => ['desc' => "Add area restricted for placing blocks", 'usage' => ""], + 'addsafearea' => ['desc' => "Add area restricted for placing blocks", 'usage' => " 365:2,13,1:0"], 'load' => ['desc' => "Load arena after finishing setup", 'usage' => ''], 'join' => ['desc' => "Join arena by id", 'usage' => ''], 'random' => ['desc' => "Join random arena", 'usage' => ''], @@ -281,7 +281,7 @@ public function execute(CommandSender $sender, string $commandLabel, array $args return; } - if(count($args) < 2){ + if(count($args) < 3){ $sender->sendMessage($this->getSubUsage('addsafearea')); return; } @@ -501,4 +501,4 @@ private function sendHelp(CommandSender $sender) { $sender->sendMessage(TextFormat::RED . $command . TextFormat::GRAY . " - " . $info['desc']); } } -} \ No newline at end of file +}