mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-18 19:56:50 -04:00
fix still being added to countdown players list, when can't join countdown map
This commit is contained in:
parent
d855920aad
commit
a7a69565eb
@ -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.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user