Hello, I am wondering how to make a code know how many players are in a world and when to start the game, I am new to pho and need help Thanks in advance
You mean that? PHP: $arena = "Name of the world";$levelArena = $this->getServer()->getLevelByName($arena);$aop = count($levelArena->getPlayers());$player->sendMessage("World players count: ".$aop."");
use an if statement to compare the count of the players in the level to the amount of players you want when the game starts