Skip to content

Commit

Permalink
KOTH final?
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendotgg committed Nov 25, 2023
1 parent cbabf4d commit 7597b8d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class KingOfTheHillGame : MainGame() {
isCancelled = true
amount = 0.0
}


}

private val df = DecimalFormat("0.0")
Expand Down Expand Up @@ -137,8 +135,8 @@ class KingOfTheHillGame : MainGame() {
iterator.remove()
Bukkit.broadcastMessage("${player.name} was elmimnated")

if (alive.size == 0) {
Bukkit.broadcastMessage("game ended, $player last man standing")
if (alive.size == 1) {
Bukkit.broadcastMessage("game ended, ${alive[0]!!.name} last man standing")
MainGameEngine.stop()
return@repeat
}
Expand Down Expand Up @@ -177,6 +175,8 @@ class KingOfTheHillGame : MainGame() {
getAttribute(Attribute.GENERIC_MAX_HEALTH)?.baseValue = 20.0;
health = 20.0
inventory.clear()
resetTitle()
clearActionBar()
}
}

Expand Down

0 comments on commit 7597b8d

Please sign in to comment.