1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-22 01:58:54 +00:00

修复超级工具修改无法保存数据的问题...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-12-08 21:57:28 +08:00
parent 56fd3f20ed
commit 4bb7e63266
2 changed files with 2 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.maxgamer</groupId> <groupId>org.maxgamer</groupId>
<artifactId>QuickShop</artifactId> <artifactId>QuickShop</artifactId>
<version>1.6.4</version> <version>1.6.5</version>
<description>快捷商店重置版本...</description> <description>快捷商店重置版本...</description>
<build> <build>
<finalName>${project.name}</finalName> <finalName>${project.name}</finalName>
@ -54,7 +54,7 @@
</build> </build>
<properties> <properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url> <jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<update.description>&amp;b补全丢失的词条 &amp;a修改金额格式化方式...</update.description> <update.description>&amp;c修复超级工具修改无法保存数据的问题...</update.description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<repositories> <repositories>

View File

@ -172,19 +172,16 @@ public class PlayerListener implements Listener {
shop.setUnlimited(!shop.isUnlimited()); shop.setUnlimited(!shop.isUnlimited());
shopmode = shop.isUnlimited() ? "§e无限模式" : "§c有限模式"; shopmode = shop.isUnlimited() ? "§e无限模式" : "§c有限模式";
p.sendMessage(MsgUtil.p("command.toggle-unlimited", shopmode)); p.sendMessage(MsgUtil.p("command.toggle-unlimited", shopmode));
return;
} }
} else { } else {
if (shop.getShopType() == ShopType.BUYING && p.hasPermission("quickshop.create.sell") && (shop.getOwner().equalsIgnoreCase(p.getName()) || p.isOp())) { if (shop.getShopType() == ShopType.BUYING && p.hasPermission("quickshop.create.sell") && (shop.getOwner().equalsIgnoreCase(p.getName()) || p.isOp())) {
shop.setShopType(ShopType.SELLING); shop.setShopType(ShopType.SELLING);
p.sendMessage(MsgUtil.p("command.now-selling", shop.getDataName())); p.sendMessage(MsgUtil.p("command.now-selling", shop.getDataName()));
shopmode = "出售模式"; shopmode = "出售模式";
return;
} else if (shop.getShopType() == ShopType.SELLING && p.hasPermission("quickshop.create.buy") && (shop.getOwner().equalsIgnoreCase(p.getName()) || p.isOp())) { } else if (shop.getShopType() == ShopType.SELLING && p.hasPermission("quickshop.create.buy") && (shop.getOwner().equalsIgnoreCase(p.getName()) || p.isOp())) {
shop.setShopType(ShopType.BUYING); shop.setShopType(ShopType.BUYING);
p.sendMessage(MsgUtil.p("command.now-buying", shop.getDataName())); p.sendMessage(MsgUtil.p("command.now-buying", shop.getDataName()));
shopmode = "收购模式"; shopmode = "收购模式";
return;
} }
} }
if (!shopmode.isEmpty()) { if (!shopmode.isEmpty()) {