From 8819fe6ad2ce2ce1b5f27c16cb3a8987b4f6492d Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 16 Dec 2015 11:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=87=E7=AD=BE=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=98=BE=E7=A4=BA...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- .../cn/citycraft/Yum/manager/RepositoryManager.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java b/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java index 71570a4..3f51968 100644 --- a/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java +++ b/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java @@ -93,14 +93,16 @@ public class RepositoryManager { public List getAllPluginsInfo() { final List li = new ArrayList(); - li.add("§d仓库名称 §a插件名称 §e插件描述"); + li.add("§d仓库名称 §a插件名称 §e插件描述"); for (final Entry pi : repocache.getPlugins().entrySet()) { final Plugin plugin = pi.getValue().plugin; li.add(String.format("§d%s §a%s §6- §e%s", pi.getValue().repo, pi.getValue().name, plugin.description)); if (plugin.tags != null) { - li.add("§dTag标签 §a版本 §e类型 §c地址"); - for (final TagInfo tag : plugin.tags) { - li.add(String.format(" §d%s §a%s §e%s §6- §c%s", tag.tag, tag.version, tag.type != null ? tag.type : URLType.Maven, tag.url != null ? tag.url : "未定义")); + li.add(" §b┗Tags §c标签 §a版本 §e类型"); + final List taglist = plugin.tags; + for (int i = 0; i < taglist.size(); i++) { + final TagInfo tag = taglist.get(i); + li.add(" §b" + (i == taglist.size() - 1 ? "┗ " : "┣ ") + String.format("§c%s §a%s §e%s", tag.tag, tag.version, tag.type != null ? tag.type : URLType.Maven)); } } }