I need a second help for my KygekRulesUI plugin. Why when I set the permission of /rules to true in plugin.yml, when I'm not op or get the permission, it said that I don't have permission. What's wrong? Can anyone help me and what should I do? My Project: https://github.com/Kygekraqmak/KygekRulesUI plugin.yml: Code: commands: rules: description: Server rules in UI form usage: /rules permissions: rules.command: description: Permission to use KygekRulesUI default: true Main.php: PHP: public function onCommand(CommandSender $player, Command $cmd, string $label, array $args) : bool { switch($cmd->getName()) { case "rules": if(!$player instanceof Player) { $player->sendMessage("[KygekRulesUI] This command only works in game!"); } else { if(!$player->hasPermission("rules.command")) { $player->sendMessage("[KygekRulesUI] You do not have permission to use this command!"); } else { $this->kygekRulesUI($player); } } } return true; }
Code: commands: rules: description: Server rules in UI form permission: rules.command usage: /rules permissions: rules.command: description: Permission to use KygekRulesUI default: true ° You're welcome
you didnt set Permission to command, first set perm to cmd and then define perm in permission: and its done
Here's where I started: http://forums.pocketmine.net/members/primus.25050/ Asking dumb af questions. But that community at the time was super friendly and here I am now. 5 years passed and I'm able to help others without even developing plugins myself. I am here just to give back to that community. I'll stay till the last day.