PHP: $server->getDataPath() . "worlds/" $server is an instance of Server, which you would usually get it through $this->getServer().