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:
@@ -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) {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user