Hey, so I am working on adding commands to my plugin and this is what I have so far: PHP: public function onCommand(CommandSender $sender, Command $command, string $label, array $args): bool{ if (strtolower($command->getName()) == "test") { if ($sender->hasPermission("test.test")) { if ($sender instanceof Player) { $sender->sendMessage("test works!"); } else { $sender->sendMessage(TextFormat::RED . "IN-GAME ONLY!"); } } else { $sender->sendMessage(TextFormat::RED . "No permissions"); return false; }} } I could have sworn I did this right, but for some reason when I use /test, nothing shows up and it gives me the use /help message. Did I do something wrong? Any help will be greatly appreciated!
Ok i don't do my commands this way BUT... I believe when you do it this way you have to register it in the plugin.yml EXAMPLE: commands: test: description: test Also you're missing a return statement.