From a0f4846fd12541a248d3a5f134477acc447e6d95 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Fri, 20 Nov 2015 14:28:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=91=BD=E4=BB=A4=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BF=AE=E6=94=B9=E5=95=86=E5=BA=97=E4=B8=BA=E5=87=BA?= =?UTF-8?q?=E5=94=AE...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/org/maxgamer/QuickShop/Command/CommandSell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/maxgamer/QuickShop/Command/CommandSell.java b/src/main/java/org/maxgamer/QuickShop/Command/CommandSell.java index 66b17b9..9a7345e 100644 --- a/src/main/java/org/maxgamer/QuickShop/Command/CommandSell.java +++ b/src/main/java/org/maxgamer/QuickShop/Command/CommandSell.java @@ -30,7 +30,7 @@ public class CommandSell extends BaseCommand { while (bIt.hasNext()) { final Block b = bIt.next(); final Shop shop = plugin.getShopManager().getShop(b.getLocation()); - if (shop != null && shop.getOwner().equals(((Player) sender).getUniqueId())) { + if (shop != null && shop.getOwner().equals(((Player) sender).getName())) { shop.setShopType(ShopType.SELLING); shop.setSignText(); shop.update();