Fix zombie survival not setting main level (if set to true in server settings) for first round, fix custom command permissions being lost on server start.

This commit is contained in:
UnknownShadow200 2016-08-29 00:24:37 +10:00
parent e705ef6d50
commit 6a52d20311
2 changed files with 3 additions and 1 deletions

View File

@ -65,6 +65,9 @@ namespace MCGalaxy.Games {
if (p.level != CurLevel) continue;
PlayerJoinedLevel(p, p.level, p.level);
}
if (ZombieGame.SetMainLevel)
Server.mainLevel = CurLevel;
return true;
}

View File

@ -65,7 +65,6 @@ namespace MCGalaxy {
//if (lines.Length == 0) ; // this is useless?
if (lines[0] == "#Version 2") ReadVersion2(lines, cmdNames);
else ReadVersion1(lines, cmdNames);
Save(allowedCommands);
} else {
Save(allowedCommands);
}