Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function openMyForm($player)
- {
- $api = $this->getServer()->getPluginManager()->getPlugin("FormAPI");
- $form = $api->createSimpleForm(function (player $player, int $data = null) {
- $result = $data;
- if ($result === null) {
- return true;
- }
- switch ($result) {
- case 0:
- //where i want the tp command to go;
- break;
- }
- });
- $form->setTitle("§l§o§3FFA Arenas GUI");
- $form->setContent("§l§o§3Please Select An Arena To Be Warped Too");
- $form->addButton("§l§o§3NoDebuff Arena");
- $form->addButton("§l§o§3Gapple Arena");
- $form->addButton("§l§o§3Sumo Arena");
- $form->addButton("§l§o§3Combo Arena");
- $form->sendToPlayer($player);
- return $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement