9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-26 02:19:33 +00:00

Fixed top damager commands

This commit is contained in:
Auxilor
2022-02-06 14:00:50 +00:00
parent af1eb8d27c
commit 6ca3441f3b

View File

@@ -334,7 +334,7 @@ class EcoBoss(
xp.modify(event.event)
for ((index, damager) in entity.topDamagers.withIndex()) {
val rewards = commandRewards[index] ?: continue
val rewards = commandRewards[index + 1] ?: continue
val damagerPlayer = Bukkit.getPlayer(damager.uuid) ?: continue
for (reward in rewards) {
reward.reward(damagerPlayer)