diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index 7d1a2be..3dd54f7 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java index b8120eb..f274de8 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java @@ -2828,7 +2828,7 @@ public class GenericFunctions { return false; } } else - if (GenericFunctions.isBankSign(s)) { + if (GenericFunctions.isBankSign(s) && !p.isOp()) { return false; } else { return true; diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/WorldShop.java b/src/sig/plugin/TwosideKeeper/HelperStructures/WorldShop.java index 0c8c98b..660025b 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/WorldShop.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/WorldShop.java @@ -718,36 +718,40 @@ public class WorldShop { } public static void removeShopItem(Sign s) { - removeShopItem(s, TwosideKeeper.TwosideShops.LoadWorldShopData(s)); + if (isWorldShopSign(s)) { + removeShopItem(s, TwosideKeeper.TwosideShops.LoadWorldShopData(s)); + } } public static void removeShopItem(Sign s, WorldShop shop) { - Collection nearby = WorldShop.getBlockShopSignAttachedTo(s).getWorld().getNearbyEntities(WorldShop.getBlockShopSignAttachedTo(s).getLocation().add(0.5,0,0.5), 0.3, 1, 0.3); - for (int i=0;i lore = new ArrayList(); - if (m.hasLore()) { - lore = m.getLore(); - } - lore.add("WorldShop Display Item"); - m.setLore(lore); - checkdrop.setItemMeta(m); - - TwosideKeeper.log("Comparing item "+it.getItemStack().toString()+" to "+checkdrop.toString(),5); - if (it.getItemStack().isSimilar(checkdrop) && - Artifact.isArtifact(it.getItemStack())) { - TwosideKeeper.log("Same type.",5); - e.remove(); - e.setCustomNameVisible(false); - e.setCustomName(null); + if (isWorldShopSign(s)) { + Collection nearby = WorldShop.getBlockShopSignAttachedTo(s).getWorld().getNearbyEntities(WorldShop.getBlockShopSignAttachedTo(s).getLocation().add(0.5,0,0.5), 0.3, 1, 0.3); + for (int i=0;i lore = new ArrayList(); + if (m.hasLore()) { + lore = m.getLore(); + } + lore.add("WorldShop Display Item"); + m.setLore(lore); + checkdrop.setItemMeta(m); + + TwosideKeeper.log("Comparing item "+it.getItemStack().toString()+" to "+checkdrop.toString(),5); + if (it.getItemStack().isSimilar(checkdrop) && + Artifact.isArtifact(it.getItemStack())) { + TwosideKeeper.log("Same type.",5); + e.remove(); + e.setCustomNameVisible(false); + e.setCustomName(null); + } } } }