add static_spawnpoint setting

This commit is contained in:
darkrose 2013-05-12 17:21:03 +10:00
parent db134462f6
commit cc0a94a88d
1 changed files with 5 additions and 1 deletions

View File

@ -4225,7 +4225,11 @@ void Server::notifyPlayers(const std::wstring msg)
v3f findSpawnPos(ServerMap &map)
{
return v3f(0,0,0);
if (g_settings->exists("static_spawnpoint"))
{
v3f pos = g_settings->getV3F("static_spawnpoint");
return pos;
}
v2s16 nodepos;
s16 groundheight = 0;