diff --git a/src/main/java/org/maxgamer/QuickShop/Command/CommandInfo.java b/src/main/java/org/maxgamer/QuickShop/Command/CommandInfo.java index fc310d7..3b84833 100644 --- a/src/main/java/org/maxgamer/QuickShop/Command/CommandInfo.java +++ b/src/main/java/org/maxgamer/QuickShop/Command/CommandInfo.java @@ -27,8 +27,8 @@ public class CommandInfo extends BaseCommand { @Override public void execute(final CommandSender sender, final Command command, final String label, final String[] args) throws CommandException { - int buying, selling, doubles, chunks, worlds; - buying = selling = doubles = chunks = worlds = 0; + int buying, selling, doubles, chunks, worlds, unlimited; + buying = selling = doubles = chunks = worlds = unlimited = 0; int nostock = 0; sender.sendMessage(ChatColor.RED + "开始检索商店信息中..."); for (final HashMap> inWorld : plugin.getShopManager().getShops().values()) { @@ -36,6 +36,9 @@ public class CommandInfo extends BaseCommand { for (final HashMap inChunk : inWorld.values()) { chunks++; for (final Shop shop : inChunk.values()) { + if (shop.isUnlimited()) { + unlimited++; + } if (shop.isBuying()) { buying++; } else if (shop.isSelling()) { @@ -52,6 +55,7 @@ public class CommandInfo extends BaseCommand { sender.sendMessage(MsgUtil.p("info.title", chunks, buying + selling, worlds)); sender.sendMessage(MsgUtil.p("info.selling", selling)); sender.sendMessage(MsgUtil.p("info.buying", buying)); + sender.sendMessage(MsgUtil.p("info.unlimited", unlimited)); sender.sendMessage(MsgUtil.p("info.double", doubles)); sender.sendMessage(MsgUtil.p("info.canclean", nostock)); } diff --git a/src/main/resources/messages.yml b/src/main/resources/messages.yml index 36357a3..8f9be15 100644 --- a/src/main/resources/messages.yml +++ b/src/main/resources/messages.yml @@ -58,6 +58,7 @@ info: title: '&a当前加载的 &e{0} &a个区块中 共有 &e{1} &a个商店 覆盖 &e{2} &a个世界.' selling: '&b出售商店&a有 &e{0} &a个.' buying: '&d收购商店&a有 &e{0} &a个.' + unlimited: '&c无限商店&a有 &e{0} &a个.' double: '&3大箱子商店 &e{0} &a个.' canclean: '&a可以用 &b/qs clean &a清理的商店有 &e{0} &a个.'