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