From 8a5545c2f87853983ca7b83ef52e71c311df445d Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Thu, 22 Nov 2018 16:02:05 +0800 Subject: [PATCH] Fix controlpanel the price Former-commit-id: 3e9f5f9c658fa31aa4ea43d1d7046cb8f616fdf2 [formerly 51837aefcef5e3f3ffe354b4642770c1dc33094b] Former-commit-id: bde5f15089a7fbb634c23729a6381481f9fe9d74 --- 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 ca4f0fe4b..b6fc582dd 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java +++ b/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java @@ -299,7 +299,7 @@ public class MsgUtil { } } // Set Price - if (sender.hasPermission("quickshop.other.price")) { + if (sender.hasPermission("quickshop.other.price")||shop.getOwner().equals(((Player)sender).getUniqueId())) { String Text = MsgUtil.getMessage("controlpanel.price", String.valueOf(shop.getPrice())); String hoverText = MsgUtil.getMessage("controlpanel.mode-buying-hover"); String type = "price";