forked from SteamWar/SteamWar
Fixes and Balances
This commit is contained in:
@@ -100,7 +100,12 @@ object TNTLeagueGame {
|
||||
timerTask = plugin.server.scheduler.runTaskTimer(plugin, bukkit {
|
||||
gameTimeRemaining--
|
||||
if (gameTimeRemaining == 0) {
|
||||
draw(WinReason.TIMEOUT)
|
||||
if (blueTeam.damagedBlocks > redTeam.damagedBlocks)
|
||||
win(blueTeam, WinReason.TIMEOUT)
|
||||
else if (redTeam.damagedBlocks > blueTeam.damagedBlocks)
|
||||
win(redTeam, WinReason.TIMEOUT)
|
||||
else
|
||||
draw(WinReason.TIMEOUT)
|
||||
return@bukkit
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user