mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-19 12:18:03 -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) {
|
public override void PlayerJoinedGame(Player p) {
|
||||||
if (!Players.Contains(p)) {
|
if (!Players.Contains(p)) {
|
||||||
|
if (p.level != Map && !PlayerActions.ChangeMap(p, "countdown")) return;
|
||||||
Players.Add(p);
|
Players.Add(p);
|
||||||
p.Message("You've joined countdown!");
|
p.Message("You've joined countdown!");
|
||||||
Chat.MessageFrom(p, "λNICK %Sjoined countdown!");
|
Chat.MessageFrom(p, "λNICK %Sjoined countdown!");
|
||||||
if (p.level != Map) PlayerActions.ChangeMap(p, "countdown");
|
|
||||||
} else {
|
} else {
|
||||||
p.Message("You've already joined countdown. To leave, go to another map.");
|
p.Message("You've already joined countdown. To leave, go to another map.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user