you can use https://poggit.pmmp.io/p/FormAPI plugin by jojoe77777 example code: $form = $this->getServer()->getPluginManager()->getPlugin("FormAPI")->createCustomForm(Player $player, $data){ $result = $data; $this->msg = $data[0]; if($result == null){ } switch($result){ case 0: $this->getServer()->getBroadCastMessage($this->msg); break; } }); $form->setTitle("Example Title"); $form->addLabel("Example"); $form->addInput("Example Button", 0); $form->sendToPlayer($player); }