add more info
All checks were successful
Java CI-CD with Maven / build (push) Successful in 1h50m21s

This commit is contained in:
zhangyuheng 2024-01-11 00:40:25 +08:00
parent ccc260d41d
commit 35347f8369
2 changed files with 9 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId> <groupId>cn.lunadeer</groupId>
<artifactId>MiniPlayerTitle</artifactId> <artifactId>MiniPlayerTitle</artifactId>
<version>2.5</version> <version>2.6</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>MiniPlayerTitle</name> <name>MiniPlayerTitle</name>

View File

@ -128,12 +128,18 @@ public class Commands implements TabExecutor {
} }
View view = View.create(); View view = View.create();
view.title("称号系统"); view.title("称号系统");
Line line_1 = Line.create();
line_1.append(Component.text("当前版本:"));
line_1.append(Component.text(MiniPlayerTitle.instance.getPluginMeta().getVersion()));
Line line_2 = Line.create();
line_2.append(Component.text("帮助文档:"));
line_2.append(Component.text("[点击在浏览器中打开]").clickEvent(ClickEvent.clickEvent(ClickEvent.Action.OPEN_URL, "https://ssl.lunadeer.cn:14446/zhangyuheng/MiniPlayerTitle")));
Component backpack = Button.create("称号背包", "/mplt list"); Component backpack = Button.create("称号背包", "/mplt list");
Component shop = Button.create("称号商店", "/mplt shop"); Component shop = Button.create("称号商店", "/mplt shop");
Component custom = Button.create("自定义称号", "/mplt custominfo"); Component custom = Button.create("自定义称号", "/mplt custominfo");
Line line = Line.create(); Line line = Line.create();
line.append(backpack).append(shop).append(custom); line.append(backpack).append(shop).append(custom);
view.actionBar(line); view.actionBar(line).addLine(line_1).addLine(line_2);
view.showOn((Player) sender); view.showOn((Player) sender);
} }
@ -159,7 +165,7 @@ public class Commands implements TabExecutor {
.append(Component.text("在聊天框输入 /mplt custom <称号>")); .append(Component.text("在聊天框输入 /mplt custom <称号>"));
Line line_4 = Line.create(); Line line_4 = Line.create();
line_4.append("可以使用 Minecraft渐变颜色生成器 来生成具有渐变效果的称号") line_4.append("可以使用 Minecraft渐变颜色生成器 来生成具有渐变效果的称号")
.append(Component.text("[点击在浏览器中打开]", ViewStyles.action_color) .append(Component.text("[点击在浏览器中打开生成器]", ViewStyles.action_color)
.clickEvent(ClickEvent.clickEvent(ClickEvent.Action.OPEN_URL, "https://ssl.lunadeer.cn:14440/"))); .clickEvent(ClickEvent.clickEvent(ClickEvent.Action.OPEN_URL, "https://ssl.lunadeer.cn:14440/")));
view.addLine(line_1) view.addLine(line_1)
.addLine(line_2) .addLine(line_2)