From c727f3ff9762464559ffc20252942262348226e0 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Fri, 18 Sep 2015 20:23:43 +0800 Subject: [PATCH] remove anno... Signed-off-by: 502647092 --- .../hooks/EpicBossRecodedListener.java | 38 +++++-------------- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/src/com/me/tft_02/soulbound/hooks/EpicBossRecodedListener.java b/src/com/me/tft_02/soulbound/hooks/EpicBossRecodedListener.java index 1d31778..4e19d83 100644 --- a/src/com/me/tft_02/soulbound/hooks/EpicBossRecodedListener.java +++ b/src/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; @@ -9,32 +9,12 @@ import com.me.tft_02.soulbound.config.Config; 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(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); + } }