fix still being added to countdown players list, when can't join countdown map

This commit is contained in:
UnknownShadow200 2018-08-10 18:37:50 +10:00
parent d855920aad
commit a7a69565eb

View File

@ -157,10 +157,10 @@ namespace MCGalaxy.Games {
public override void PlayerJoinedGame(Player p) {
if (!Players.Contains(p)) {
if (p.level != Map && !PlayerActions.ChangeMap(p, "countdown")) return;
Players.Add(p);
p.Message("You've joined countdown!");
Chat.MessageFrom(p, "λNICK %Sjoined countdown!");
if (p.level != Map) PlayerActions.ChangeMap(p, "countdown");
Chat.MessageFrom(p, "λNICK %Sjoined countdown!");
} else {
p.Message("You've already joined countdown. To leave, go to another map.");
}