Hi the developers. I would like to do a plugin with FormAPI but here I am blocking. how can I get the name of all online players in buttons Spoiler: function Spoiler: are you sure? Spoiler: I can trust you? Spoiler: curiosity is a bad thing PHP: public function mainFrom($player){ $api = $this->getServer()->getPluginManager()->getPlugin("FormAPI"); $form = $api->createSimpleForm(function (Player $event, array $data){ $player = $event->getPlayer(); $result = $data[0]; if($result === null){ } switch($result){ case 0: break; case 1: break; } }); $form->setTitle("--= " . "AdminUI" . " =--"); $form->setContent("Make your choose."); foreach($this->getServer()->getOnlinePlayers() as $online){ $name = $online->getName(); $form->addButton($name); $form->sendToPlayer($player); } }