From 543eb0db8438bbc236d27816936ea1838cd377d2 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Fri, 16 Dec 2016 16:35:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E7=AB=AF=E7=9A=84=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/YumCore/tellraw/Tellraw.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/pw/yumc/YumCore/tellraw/Tellraw.java b/src/main/java/pw/yumc/YumCore/tellraw/Tellraw.java index b3a10db..df1405d 100644 --- a/src/main/java/pw/yumc/YumCore/tellraw/Tellraw.java +++ b/src/main/java/pw/yumc/YumCore/tellraw/Tellraw.java @@ -22,6 +22,17 @@ import pw.yumc.YumCore.bukkit.compatible.C; public class Tellraw implements Cloneable { private List 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) { messageParts.add(new MessagePart(text)); }