forked from SteamWar/SteamWar
Fix TowerRun event
This commit is contained in:
@@ -62,6 +62,7 @@ public class LobbyListener extends GameStateBukkitListener {
|
|||||||
int team = user.getTeam();
|
int team = user.getTeam();
|
||||||
|
|
||||||
if (team != Config.EVENT_TEAM_BLUE_ID && team != Config.EVENT_TEAM_RED_ID) {
|
if (team != Config.EVENT_TEAM_BLUE_ID && team != Config.EVENT_TEAM_RED_ID) {
|
||||||
|
player.setGameMode(GameMode.SPECTATOR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user