Fixes and Balances

This commit is contained in:
2024-12-13 19:13:14 +01:00
parent 7d9b3cd098
commit 2436340765
2 changed files with 12 additions and 1 deletions
@@ -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
}