Advertisement
Guest User

My Forms Code

a guest
Jun 11th, 2020
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public function openMyForm($player)
  2. {
  3. $api = $this->getServer()->getPluginManager()->getPlugin("FormAPI");
  4. $form = $api->createSimpleForm(function (player $player, int $data = null) {
  5. $result = $data;
  6. if ($result === null) {
  7. return true;
  8. }
  9. switch ($result) {
  10. case 0:
  11. //where i want the tp command to go;
  12. break;
  13. }
  14. });
  15. $form->setTitle("§l§o§3FFA Arenas GUI");
  16. $form->setContent("§l§o§3Please Select An Arena To Be Warped Too");
  17. $form->addButton("§l§o§3NoDebuff Arena");
  18. $form->addButton("§l§o§3Gapple Arena");
  19. $form->addButton("§l§o§3Sumo Arena");
  20. $form->addButton("§l§o§3Combo Arena");
  21. $form->sendToPlayer($player);
  22. return $form;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement