update wellcome message
All checks were successful
Java CI-CD with Maven / build (push) Successful in 2h7m8s

This commit is contained in:
zhangyuheng 2024-01-11 09:33:58 +08:00
parent 35347f8369
commit cb2c23de76
4 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
[PlayerTitle](https://ricedoc.handyplus.cn/wiki/PlayerTitle/) 青春版 [PlayerTitle](https://ricedoc.handyplus.cn/wiki/PlayerTitle/) 青春版
![image-20240110164757834](https://ssl.lunadeer.cn:14437/i/2024/01/10/659e59bfc8f7b.png) ![image-20240111093304074](https://ssl.lunadeer.cn:14437/i/2024/01/11/659f455088092.png)
## 说明 ## 说明
@ -72,7 +72,7 @@
- 自定义称号支持RGB彩色字需要使用 `&#`为开头的十六进制RGB颜色代码表示颜色例如`&#000000`表示黑色。可以使用 [Minecraft 渐变颜色生成器](https://ssl.lunadeer.cn:14440/) 来生成具有渐变效果的称号。 - 自定义称号支持RGB彩色字需要使用 `&#`为开头的十六进制RGB颜色代码表示颜色例如`&#000000`表示黑色。可以使用 [Minecraft 渐变颜色生成器](https://ssl.lunadeer.cn:14440/) 来生成具有渐变效果的称号。
- 创建成功后会自动扣除所需的花费。 - 创建成功后会自动扣除所需的花费。
![image-20240110171242703](https://ssl.lunadeer.cn:14437/i/2024/01/10/659e5f8b2f5fb.png) ![image-20240111093331929](https://ssl.lunadeer.cn:14437/i/2024/01/11/659f456c4a88b.png)
## 管理员指南 ## 管理员指南

View File

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

View File

@ -108,7 +108,7 @@ public class Commands implements TabExecutor {
} }
} }
private void printHelp(@NotNull CommandSender sender) { private static void printHelp(@NotNull CommandSender sender) {
if (sender instanceof Player) { if (sender instanceof Player) {
Player player = (Player) sender; Player player = (Player) sender;
Notification.warn(player, "用法: /mplt <use|list|shop|buy|custom|custominfo>"); Notification.warn(player, "用法: /mplt <use|list|shop|buy|custom|custominfo>");
@ -121,7 +121,7 @@ public class Commands implements TabExecutor {
} }
} }
private void home_view(CommandSender sender) { public static void home_view(CommandSender sender) {
if (!(sender instanceof Player)) { if (!(sender instanceof Player)) {
printHelp(sender); printHelp(sender);
return; return;

View File

@ -12,7 +12,7 @@ public class Events implements Listener {
@EventHandler @EventHandler
public void onPlayerJoin(PlayerJoinEvent event) { public void onPlayerJoin(PlayerJoinEvent event) {
XPlayer player = new XPlayer(event.getPlayer()); XPlayer player = new XPlayer(event.getPlayer());
Notification.info(event.getPlayer(), "输入 /mplt 使用称号系统"); Commands.home_view(event.getPlayer());
} }
@EventHandler @EventHandler