mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 14:28:46 +00:00
调整标签数据显示...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
34596e3b1d
commit
8819fe6ad2
@ -98,9 +98,11 @@ public class RepositoryManager {
|
|||||||
final Plugin plugin = pi.getValue().plugin;
|
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));
|
li.add(String.format("§d%s §a%s §6- §e%s", pi.getValue().repo, pi.getValue().name, plugin.description));
|
||||||
if (plugin.tags != null) {
|
if (plugin.tags != null) {
|
||||||
li.add("§dTag标签 §a版本 §e类型 §c地址");
|
li.add(" §b┗Tags §c标签 §a版本 §e类型");
|
||||||
for (final TagInfo tag : plugin.tags) {
|
final List<TagInfo> taglist = 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 : "未定义"));
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user