Hi, here is my code PHP: <?phpdeclare(strict_types=1);namespace MrDinoDuck\AdvancedWings;use pocketmine\plugin\PluginBase;use pocketmine\command\CommandSender;use pocketmine\command\Command;use pocketmine\Player;use jojoe77777\FormAPI\{CustomForm, SimpleForm};use MrDinoDuck\AdvancedWings\Forms\WingMenu;use MrDinoDuck\AdvancedWings\Tasks\ParticlesTask;use MrDinoDuck\AdvancedWings\Forms\{WingUI, CircleUI, WalkingUI};use Frago9876543210\EasyForms\elements\Button;use Frago9876543210\EasyForms\forms\MenuForm;class Main extends PluginBase{ public $wing = []; public $circle = []; public $walking = []; public function onCommand(CommandSender $sender, Command $command, string $label, array $args) : bool{ switch($command->getName()){ case "wings": $sender->sendForm(new MenuForm("§a[§b§lWings§r§a]", "§9•§e Chọn loại hình", [ new Button("Wing"), new Button("Circle"), new Button("Walking")]), function(Player $player, Button $selected) : void{ if($response->getText() === "Wing"){ $wing = new WingUI($this); $player->sendForm($wing); }elseif($response->getText() === "Circle"){ $circle = new CircleUI($this); $player->sendForm($circle); }elseif($response->getText() === "Walking"){ $walking = new WalkingUI($this); $player->sendForm($walking); } }); return true; }}} When i clicked on the button, it do nothing. No Console Error. Please help
Here's a trick to debug such errors. Print the value in the console. PHP: var_dump($response->getText()); Does it meet any of your if cases? Or if nothing gets outputted in the console, then consider that part of the code is not executing.