You need to put the name of a loaded world, the reason you're getting errors is because your world is not loaded
its work but not count my code : PHP: "{CreativePlot}" => count($player->getServer()->getLevelByName("CreativePlot")->getPlayers()),