9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-28 19:39:10 +00:00

Fixed spawn broadcast placeholders

This commit is contained in:
Auxilor
2022-02-06 13:27:25 +00:00
parent 4093fa92bd
commit f6f9fb3c1d
2 changed files with 5 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ class LivingEcoBoss(
val deathTime = System.currentTimeMillis() + (boss.lifespan * 1000)
private var currentTick = 0
private var currentTick = 1 // Start at 1 as 0 is divisible by everything
private fun tick(): Boolean {
if (entity == null || entity?.isDead == true) {

View File

@@ -20,6 +20,10 @@ data class LocalBroadcast(
.replace("%damage_${index + 1}_player%", Bukkit.getOfflinePlayer(damager.uuid).savedDisplayName)
}
message = message.replace("%x%", location.blockX.toString())
.replace("%y%", location.blockY.toString())
.replace("%z%", location.blockZ.toString())
message.formatEco()
}