From c83ace24c9461283f6dc70203feaf9150746047e Mon Sep 17 00:00:00 2001 From: j502647092 Date: Sun, 18 Oct 2015 14:43:37 +0800 Subject: [PATCH] fix Owner can't remove shop while gui mode... Signed-off-by: j502647092 --- src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java b/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java index 3acbc4a..79be4bd 100644 --- a/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java +++ b/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java @@ -193,7 +193,7 @@ public class MsgUtil { p.sendMessage(ChatColor.DARK_PURPLE + "| " + MsgUtil.p("menu.this-shop-is-selling")); } p.sendMessage(ChatColor.DARK_PURPLE + "+---------------------------------------------------+"); - if (!plugin.getConfigManager().isEnableMagicLib()) { + if (!plugin.getConfigManager().isEnableMagicLib() && !shop.getOwner().equalsIgnoreCase(p.getName())) { final Inventory in = Bukkit.createInventory(null, 9, plugin.getConfigManager().getGuiTitle()); in.setItem(4, items); p.openInventory(in);