diff --git a/src/main/java/com/me/tft_02/soulbound/hooks/EpicBossRecodedListener.java b/src/main/java/com/me/tft_02/soulbound/hooks/EpicBossRecodedListener.java index 1d31778..12f4526 100644 --- a/src/main/java/com/me/tft_02/soulbound/hooks/EpicBossRecodedListener.java +++ b/src/main/java/com/me/tft_02/soulbound/hooks/EpicBossRecodedListener.java @@ -1,6 +1,6 @@ package com.me.tft_02.soulbound.hooks; -//import me.ThaH3lper.com.Api.BossDeathEvent; +// import me.ThaH3lper.com.Api.BossDeathEvent; import org.bukkit.event.Listener; import org.bukkit.inventory.ItemStack; @@ -10,31 +10,13 @@ import com.me.tft_02.soulbound.util.ItemUtils; public class EpicBossRecodedListener implements Listener { - /** - * Check BossDeathEvent events. - * - * @param event The event to check - */ -/* @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) - public void onBossDeath(BossDeathEvent event) { - if (event.getDrops().isEmpty()) { - return; - } - - for (ItemStack itemStack : event.getDrops()) { - handleEpicBossItems(itemStack); - } - } -*/ - public void handleEpicBossItems(ItemStack itemStack) { - if (Config.getInstance().getEBRBindOnEquip() && ItemUtils.isEquipable(itemStack)) { - ItemUtils.boeItem(itemStack); - } - else if (Config.getInstance().getEBRBindOnPickup()) { - ItemUtils.bopItem(itemStack); - } - else if (Config.getInstance().getEBRBindOnUse()) { - ItemUtils.bouItem(itemStack); - } - } + public void handleEpicBossItems(final ItemStack itemStack) { + if (Config.getInstance().getEBRBindOnEquip() && ItemUtils.isEquipable(itemStack)) { + ItemUtils.boeItem(itemStack); + } else if (Config.getInstance().getEBRBindOnPickup()) { + ItemUtils.bopItem(itemStack); + } else if (Config.getInstance().getEBRBindOnUse()) { + ItemUtils.bouItem(itemStack); + } + } }