调整标签数据显示...

Signed-off-by: 502647092 <jtb1@163.com>
dev
502647092 2015-12-16 11:17:47 +08:00
parent 34596e3b1d
commit 8819fe6ad2
1 changed files with 6 additions and 4 deletions

View File

@ -98,9 +98,11 @@ public class RepositoryManager {
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<TagInfo> 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));
}
}
}