1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-25 02:28:54 +00:00

修复命令无法修改商店为出售...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-11-20 14:28:00 +08:00
parent 5fa9ec9142
commit a0f4846fd1

View File

@ -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();