mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-09-28 23:27:41 +02:00
Fixed BentoBox listener error
This commit is contained in:
parent
79e2ca0b72
commit
c0a0aa885e
@ -45,8 +45,12 @@ public class BentoBoxListener extends FlagListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean handleForLocation(Player player, Location loc, Cancellable e) {
|
private boolean handleForLocation(Player player, Location loc, Cancellable e) {
|
||||||
boolean allowed = checkIsland((Event) e, player, loc, BentoBoxShopFlag.SHOP_FLAG);
|
boolean chest_allowed = checkIsland((Event) e, player, loc, BentoBoxShopFlag.SHOP_CHEST_FLAG);
|
||||||
if (!allowed) {
|
boolean barrel_allowed = checkIsland((Event) e, player, loc, BentoBoxShopFlag.SHOP_BARREL_FLAG);
|
||||||
|
boolean shulker_allowed = checkIsland((Event) e, player, loc, BentoBoxShopFlag.SHOP_SHULKER_BOX_FLAG);
|
||||||
|
boolean trapped_chest_allowed = checkIsland((Event) e, player, loc, BentoBoxShopFlag.SHOP_TRAPPED_CHEST_FLAG);
|
||||||
|
|
||||||
|
if (!chest_allowed || !barrel_allowed || !shulker_allowed || !trapped_chest_allowed) {
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
plugin.debug("Cancel Reason: BentoBox");
|
plugin.debug("Cancel Reason: BentoBox");
|
||||||
return true;
|
return true;
|
||||||
|
@ -6,7 +6,7 @@ version: ${project.version}
|
|||||||
author: EpicEric
|
author: EpicEric
|
||||||
website: ${project.url}
|
website: ${project.url}
|
||||||
description: Create your own nice-looking chest shops and sell your stuff to other players!
|
description: Create your own nice-looking chest shops and sell your stuff to other players!
|
||||||
softdepend: [WorldGuard, Towny, AuthMe, PlotSquared, uSkyBlock, ASkyBlock, IslandWorld, GriefPrevention, AreaShop, Multiverse-Core, MultiWorld, BentoBox]
|
softdepend: [WorldGuard, Towny, AuthMe, PlotSquared, uSkyBlock, ASkyBlock, IslandWorld, GriefPrevention, AreaShop, Multiverse-Core, MultiWorld, BentoBox, EconomyPlugin]
|
||||||
depend: [Vault]
|
depend: [Vault]
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user