From c6f9bdcae48aaa4b0e44501a7c9830c4adc0a6f7 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 13 Jan 2016 16:15:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTellRaw=E7=9A=84ProtocolLib?= =?UTF-8?q?=E5=BA=93=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/cn/citycraft/TellRaw/FancyMessage.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/cn/citycraft/TellRaw/FancyMessage.java b/src/main/java/cn/citycraft/TellRaw/FancyMessage.java index 547c22c..54721f8 100644 --- a/src/main/java/cn/citycraft/TellRaw/FancyMessage.java +++ b/src/main/java/cn/citycraft/TellRaw/FancyMessage.java @@ -235,6 +235,9 @@ public abstract class FancyMessage implements JsonRepresentedObject, Cloneable, } } } + if (getNMSsaveNBTMethod == null || nmsNBTTagCompound == null) { + throw new ClassNotFoundException("Can't find the NBTMethod or NBTTagCompound class"); + } if (!useProtocolLib) { Bukkit.getLogger().info("[TellRawLib] 使用ChatSerializer序列化类处理..."); } else {