mirror of
https://e.coding.net/circlecloud/Soulbound.git
synced 2024-11-24 02:09:08 +00:00
remove anno...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
5ab2ac354c
commit
c727f3ff97
@ -1,6 +1,6 @@
|
|||||||
package com.me.tft_02.soulbound.hooks;
|
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.event.Listener;
|
||||||
import org.bukkit.inventory.ItemStack;
|
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;
|
import com.me.tft_02.soulbound.util.ItemUtils;
|
||||||
|
|
||||||
public class EpicBossRecodedListener implements Listener {
|
public class EpicBossRecodedListener implements Listener {
|
||||||
|
public void handleEpicBossItems(ItemStack itemStack) {
|
||||||
/**
|
if (Config.getInstance().getEBRBindOnEquip() && ItemUtils.isEquipable(itemStack))
|
||||||
* Check BossDeathEvent events.
|
ItemUtils.boeItem(itemStack);
|
||||||
*
|
else if (Config.getInstance().getEBRBindOnPickup())
|
||||||
* @param event The event to check
|
ItemUtils.bopItem(itemStack);
|
||||||
*/
|
else if (Config.getInstance().getEBRBindOnUse())
|
||||||
/* @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
ItemUtils.bouItem(itemStack);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user