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 {