add detail of custom info
All checks were successful
Java CI-CD with Maven / build (push) Successful in 1h39m58s

This commit is contained in:
zhangyuheng 2024-01-11 00:22:05 +08:00
parent c4a1cdcbaf
commit ccc260d41d
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -8,6 +8,7 @@ import cn.lunadeer.miniplayertitle.utils.STUI.View;
import cn.lunadeer.miniplayertitle.utils.STUI.ViewStyles;
import cn.lunadeer.miniplayertitle.utils.XLogger;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.event.ClickEvent;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
@ -156,9 +157,14 @@ public class Commands implements TabExecutor {
Line line_3 = Line.create();
line_3.append("自定义方法:")
.append(Component.text("在聊天框输入 /mplt custom <称号>"));
Line line_4 = Line.create();
line_4.append("可以使用 Minecraft渐变颜色生成器 来生成具有渐变效果的称号")
.append(Component.text("[点击在浏览器中打开]", ViewStyles.action_color)
.clickEvent(ClickEvent.clickEvent(ClickEvent.Action.OPEN_URL, "https://ssl.lunadeer.cn:14440/")));
view.addLine(line_1)
.addLine(line_2)
.addLine(line_3);
.addLine(line_3)
.addLine(line_4);
view.showOn(player);
}