mirror of
https://e.coding.net/circlecloud/Soulbound.git
synced 2024-11-22 01:49:09 +00:00
Merge remote-tracking branch 'Coding/master'
Conflicts: src/com/me/tft_02/soulbound/hooks/EpicBossRecodedListener.java
This commit is contained in:
commit
efd9e1515b
@ -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;
|
||||||
@ -10,31 +10,13 @@ import com.me.tft_02.soulbound.util.ItemUtils;
|
|||||||
|
|
||||||
public class EpicBossRecodedListener implements Listener {
|
public class EpicBossRecodedListener implements Listener {
|
||||||
|
|
||||||
/**
|
public void handleEpicBossItems(final ItemStack itemStack) {
|
||||||
* Check BossDeathEvent events.
|
if (Config.getInstance().getEBRBindOnEquip() && ItemUtils.isEquipable(itemStack)) {
|
||||||
*
|
ItemUtils.boeItem(itemStack);
|
||||||
* @param event The event to check
|
} else if (Config.getInstance().getEBRBindOnPickup()) {
|
||||||
*/
|
ItemUtils.bopItem(itemStack);
|
||||||
/* @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
} else if (Config.getInstance().getEBRBindOnUse()) {
|
||||||
public void onBossDeath(BossDeathEvent event) {
|
ItemUtils.bouItem(itemStack);
|
||||||
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