From e7bc3f5f856d28ed5b32df63cf83c707ae2ba011 Mon Sep 17 00:00:00 2001 From: cnaude Date: Mon, 25 May 2015 16:17:35 -0700 Subject: [PATCH] Minecraft 1.8.6 compatibility. --- dependency-reduced-pom.xml | 10 ++-------- pom.xml | 10 +--------- ...tPacket_184_185.java => NetPacket_184_185_186.java} | 2 +- .../com/cnaude/purpleirc/Utilities/NetPackets.java | 8 +++++--- 4 files changed, 9 insertions(+), 21 deletions(-) rename src/main/java/com/cnaude/purpleirc/Utilities/{NetPacket_184_185.java => NetPacket_184_185_186.java} (96%) diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml index 6f68dc3..02d589f 100644 --- a/dependency-reduced-pom.xml +++ b/dependency-reduced-pom.xml @@ -133,7 +133,7 @@ org.bukkit spigot-api - 1.8.4 + 1.8.6 provided @@ -148,12 +148,6 @@ 1.8.4 provided - - org.bukkit - spigot-185 - 1.8.5 - provided - com.google.guava guava @@ -368,7 +362,7 @@ SNAPSHOT UTF-8 - 1.8.4 + 1.8.6 diff --git a/pom.xml b/pom.xml index a6b007c..cc711ef 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ UTF-8 - 1.8.4 + 1.8.6 SNAPSHOT @@ -93,14 +93,6 @@ provided - - org.bukkit - spigot-185 - 1.8.5 - jar - provided - - com.cnaude.pircbotx diff --git a/src/main/java/com/cnaude/purpleirc/Utilities/NetPacket_184_185.java b/src/main/java/com/cnaude/purpleirc/Utilities/NetPacket_184_185_186.java similarity index 96% rename from src/main/java/com/cnaude/purpleirc/Utilities/NetPacket_184_185.java rename to src/main/java/com/cnaude/purpleirc/Utilities/NetPacket_184_185_186.java index d3a0f4d..da76832 100644 --- a/src/main/java/com/cnaude/purpleirc/Utilities/NetPacket_184_185.java +++ b/src/main/java/com/cnaude/purpleirc/Utilities/NetPacket_184_185_186.java @@ -30,7 +30,7 @@ import net.minecraft.server.v1_8_R3.PlayerInteractManager; * * @author cnaude */ -public class NetPacket_184_185 { +public class NetPacket_184_185_186 { public static PacketContainer add(String displayName) { UUID uuid = UUID.nameUUIDFromBytes(("OfflinePlayer:" + displayName).getBytes(Charsets.UTF_8)); diff --git a/src/main/java/com/cnaude/purpleirc/Utilities/NetPackets.java b/src/main/java/com/cnaude/purpleirc/Utilities/NetPackets.java index 7fcac65..180897c 100644 --- a/src/main/java/com/cnaude/purpleirc/Utilities/NetPackets.java +++ b/src/main/java/com/cnaude/purpleirc/Utilities/NetPackets.java @@ -135,13 +135,15 @@ public class NetPackets { } catch (Exception ex) { plugin.logError("tabPacket: " + ex.getMessage()); } - } else if (version.contains("MC: 1.8.4") || version.contains("MC: 1.8.5")) { + } else if (version.contains("MC: 1.8.4") + || version.contains("MC: 1.8.5") + || version.contains("MC: 1.8.6")) { try { if (add) { - return NetPacket_184_185.add(displayName); + return NetPacket_184_185_186.add(displayName); } else { plugin.logDebug("T: Removing: " + name); - return NetPacket_184_185.rem(displayName); + return NetPacket_184_185_186.rem(displayName); } } catch (Exception ex) { plugin.logError("tabPacket: " + ex.getMessage());