Hey better coders, why thats not working? $test = $this->api->player->getAll("world"); $this->api->chat->broadcast("$test"); ???? Your Mac
If you want to count players from some world, you can user this: PHP: $players = count($this->api->player->getAll($this->api->level->get("world")));$this->api->broadcast($players); But if you want to get Players names, so getAll() it's array with nick names, so you can try this: PHP: $players = $this->api->player->getAll($this->api->level->get("world"));foreach($players as $p){$this->api->chat->broadcast($p);} No tested.
should be PHP: $players = $this->api->player->getAll($this->api->level->get("world"));foreach($players as $p){ $this->api->chat->broadcast($p->username);//$p->username as the function returns a array of objects, not strings}