Use Server.zombie.Running instead of ZombieModeOn, also fix joining a zombie level (not from transferring from the previous level) did not show a join messsage.

This commit is contained in:
UnknownShadow200 2016-03-28 11:54:30 +11:00
parent c253a84bf7
commit b4bb5d098a

View File

@ -132,7 +132,8 @@ namespace MCGalaxy.Commands {
p.Loading = false;
CheckGamesJoin(p, oldLevel);
if (!p.hidden && p.level.ShouldSaveLevelFile()) {
bool showJoin = p.level.ShouldSaveLevelFile() || (oldLevel != null && oldLevel.ShouldSaveLevelFile());
if (!p.hidden && showJoin) {
Player.SendChatFrom(p, p.color + "*" + p.DisplayName + Server.DefaultColor + " went to &b" + lvl.name, false);
Server.IRC.Say(p.color + p.DisplayName + " %rwent to &8" + lvl.name, false, true);
}