This commit is contained in:
Jakub Kolář 2016-12-12 14:58:25 +01:00
parent 10f91ac514
commit d4035e5a04

View File

@ -16,7 +16,7 @@ public class NMSHook
implements INMSHook {
private String version = Bukkit.getServer().getClass().getPackage().getName().replace(".", ",").split(",")[3];
private Class<?> chatSerializer = version.startsWith("1_7")
private Class<?> chatSerializer = version.startsWith("v1_7")
? Class.forName("net.minecraft.server." + version + ".ChatSerializer")
: Class.forName("net.minecraft.server." + version + ".IChatBaseComponent$ChatSerializer");
private Class<?> chatComponent = Class.forName("net.minecraft.server." + version + ".IChatBaseComponent");