mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-25 02:18:50 +00:00
feat: 添加特殊端的错误提示
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
77b65a77da
commit
543eb0db84
@ -22,6 +22,17 @@ import pw.yumc.YumCore.bukkit.compatible.C;
|
|||||||
public class Tellraw implements Cloneable {
|
public class Tellraw implements Cloneable {
|
||||||
private List<MessagePart> messageParts = new ArrayList<>();
|
private List<MessagePart> messageParts = new ArrayList<>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
if (Bukkit.getVersion().contains("Paper") || Bukkit.getVersion().contains("Torch")) {
|
||||||
|
Log.console("§c========== §4警 告 §c==========");
|
||||||
|
Log.console("§a 当前服务器为 §6Paper §a或 §6Torch ");
|
||||||
|
Log.console("§c 异步命令会刷报错 §b不影响使用");
|
||||||
|
Log.console("§d 如果介意请使用原版 Spigot");
|
||||||
|
Log.console("§e YUMC构建站: http://ci.yumc.pw/job/Spigot/");
|
||||||
|
Log.console("§c===========================");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Tellraw(String text) {
|
public Tellraw(String text) {
|
||||||
messageParts.add(new MessagePart(text));
|
messageParts.add(new MessagePart(text));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user