forked from SteamWar/SteamWar
Fix TNTLeague
This commit is contained in:
@@ -128,7 +128,7 @@ data class TNTLeagueTeam(val config: TNTLeagueWorldConfig.TeamConfig, private va
|
||||
|
||||
fun leave(player: Player) {
|
||||
members.remove(player)
|
||||
if (TNTLeagueGame.state != TNTLeagueGame.GameState.RUNNING) {
|
||||
if (TNTLeagueGame.state == TNTLeagueGame.GameState.LOBBY) {
|
||||
if (members.isEmpty()) {
|
||||
plugin.server.onlinePlayers.firstOrNull { it != player && TNTLeagueGame.getTeam(it) == null }?.run {
|
||||
members.add(this)
|
||||
|
||||
Reference in New Issue
Block a user