mirror of
https://e.coding.net/circlecloud/Soulbound.git
synced 2024-11-21 01:39:10 +00:00
clean unless file...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
48e71f0b55
commit
6f8430e405
@ -1,40 +0,0 @@
|
||||
package com.me.tft_02.soulbound.hooks;
|
||||
|
||||
//import me.ThaH3lper.com.Api.BossDeathEvent;
|
||||
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user