diff --git a/src/FactionsPro/FactionCommands.php b/src/FactionsPro/FactionCommands.php index 8b68b85..dd7be41 100644 --- a/src/FactionsPro/FactionCommands.php +++ b/src/FactionsPro/FactionCommands.php @@ -37,7 +37,7 @@ public function onCommand(CommandSender $sender, Command $command, string $label $sender->sendMessage($this->plugin->formatMessage("Please use /f help for a list of commands")); return true; } - if(count($args == 2)){ + if(count($args) == 1){ ///////////////////////////////// WAR ///////////////////////////////// @@ -1279,6 +1279,7 @@ public function onCommand(CommandSender $sender, Command $command, string $label return true; } } + return true; } public function getMap(Player $observer, int $width, int $height, int $inDegrees, int $size = 16){ // No compass $to = (int)sqrt($size); diff --git a/src/FactionsPro/FactionMain.php b/src/FactionsPro/FactionMain.php index 282620e..6611b23 100644 --- a/src/FactionsPro/FactionMain.php +++ b/src/FactionsPro/FactionMain.php @@ -94,6 +94,7 @@ public function onEnable(){ public function onCommand(CommandSender $sender, Command $command, string $label, array $args) :bool { $this->fCommand->onCommand($sender, $command, $label, $args); + return true; } public function setEnemies($faction1, $faction2){