$window = new CustomWindowForm("windowtest", "Test", "This is a test"); $window->addDropdown("users", "Select the users", ["online users?"]); $window->showTo($player); anyway i can add online players to the drop down menu?
Store the player names in an array PHP: foreach(Server::getInstance()->getOnlinePlayers() as $plr){$playerNames[] = $plr->getName();}$form->addDropdown("Player name:", $PlayerNames);