From 6ca3441f3b0d675bea7bcbaa0112cc64a7dbe614 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 6 Feb 2022 14:00:50 +0000 Subject: [PATCH] Fixed top damager commands --- .../src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt index 00a6897..69a730c 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/bosses/EcoBoss.kt @@ -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)