From 07db2f8208ac06b21ef2e59bac2040a18b997cf7 Mon Sep 17 00:00:00 2001 From: Alastair Date: Thu, 25 May 2017 11:16:18 +0100 Subject: [PATCH] I am an idiot... i change stuff around and forget to set default to false... --- src/com/sekwah/advancedportals/compat/CraftBukkit.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/sekwah/advancedportals/compat/CraftBukkit.java b/src/com/sekwah/advancedportals/compat/CraftBukkit.java index 97c7996e..b6a8d764 100644 --- a/src/com/sekwah/advancedportals/compat/CraftBukkit.java +++ b/src/com/sekwah/advancedportals/compat/CraftBukkit.java @@ -30,7 +30,7 @@ public class CraftBukkit { private Field playerConnection; private Method sendPacket; - private boolean useEnumType = true; + private boolean useEnumType = false; // Classes so it doesnt keep fetching them. @@ -53,12 +53,14 @@ public class CraftBukkit { this.chatMessageTypeMethod = chatMessageTypeClass.getMethod("a", byte.class); this.chatPacketConstructor = Class.forName(minecraftPackage + "PacketPlayOutChat").getConstructor(chatBaseComponent, chatMessageTypeClass); + useEnumType = true; } catch(ClassNotFoundException e) { plugin.getLogger().info("Old version detected, changing chat method"); this.chatPacketConstructor = Class.forName(minecraftPackage + "PacketPlayOutChat").getConstructor(chatBaseComponent, byte.class); } + System.out.println(useEnumType); if(chatSerialClass != null){ this.serializeMessage = chatSerialClass.getMethod("a", String.class);