Skip to content

Commit

Permalink
Add @eventhandler annotation to BossKillEvent
Browse files Browse the repository at this point in the history
Closes #522
  • Loading branch information
LMBishop committed Jul 9, 2023
1 parent 8a0e5d3 commit 325b78f
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -10,6 +10,8 @@
import com.willfp.ecobosses.bosses.EcoBoss;
import com.willfp.ecobosses.events.BossKillEvent;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;

public final class EcoBossesKillingTaskType extends BukkitTaskType {

Expand All @@ -24,6 +26,7 @@ public EcoBossesKillingTaskType(BukkitQuestsPlugin plugin) {
super.addConfigValidator(TaskUtils.useIntegerConfigValidator(this, "amount"));
}

@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onBossKill(BossKillEvent event) {
Player killer = event.getKiller();
EcoBoss boss = event.getBoss().getBoss();
Expand Down

0 comments on commit 325b78f

Please sign in to comment.