Update for 1.8.8.

This commit is contained in:
cnaude 2015-07-30 18:25:30 -07:00
parent 6b1c9f0c0e
commit 852a534f4c
4 changed files with 9 additions and 8 deletions

View File

@ -126,7 +126,7 @@
<dependency> <dependency>
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.8.7</version> <version>1.8.8</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -355,7 +355,7 @@
<properties> <properties>
<build.number>SNAPSHOT</build.number> <build.number>SNAPSHOT</build.number>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bukkit.version>1.8.7</bukkit.version> <bukkit.version>1.8.8</bukkit.version>
</properties> </properties>
</project> </project>

View File

@ -6,7 +6,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Bukkit API Version, change if out dated --> <!-- Bukkit API Version, change if out dated -->
<bukkit.version>1.8.7</bukkit.version> <bukkit.version>1.8.8</bukkit.version>
<build.number>SNAPSHOT</build.number> <build.number>SNAPSHOT</build.number>
</properties> </properties>
@ -92,7 +92,7 @@
<type>jar</type> <type>jar</type>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- PircBotX --> <!-- PircBotX -->
<dependency> <dependency>
<groupId>com.cnaude.pircbotx</groupId> <groupId>com.cnaude.pircbotx</groupId>

View File

@ -30,7 +30,7 @@ import net.minecraft.server.v1_8_R3.PlayerInteractManager;
* *
* @author cnaude * @author cnaude
*/ */
public class NetPacket_184_185_186_187 { public class NetPacket_184_185_186_187_188 {
public static PacketContainer add(String displayName) { public static PacketContainer add(String displayName) {
UUID uuid = UUID.nameUUIDFromBytes(("OfflinePlayer:" + displayName).getBytes(Charsets.UTF_8)); UUID uuid = UUID.nameUUIDFromBytes(("OfflinePlayer:" + displayName).getBytes(Charsets.UTF_8));

View File

@ -138,13 +138,14 @@ public class NetPackets {
} else if (version.contains("MC: 1.8.4") } else if (version.contains("MC: 1.8.4")
|| version.contains("MC: 1.8.5") || version.contains("MC: 1.8.5")
|| version.contains("MC: 1.8.6") || version.contains("MC: 1.8.6")
|| version.contains("MC: 1.8.7")) { || version.contains("MC: 1.8.7")
|| version.contains("MC: 1.8.8")) {
try { try {
if (add) { if (add) {
return NetPacket_184_185_186_187.add(displayName); return NetPacket_184_185_186_187_188.add(displayName);
} else { } else {
plugin.logDebug("T: Removing: " + name); plugin.logDebug("T: Removing: " + name);
return NetPacket_184_185_186_187.rem(displayName); return NetPacket_184_185_186_187_188.rem(displayName);
} }
} catch (Exception ex) { } catch (Exception ex) {
plugin.logError("tabPacket: " + ex.getMessage()); plugin.logError("tabPacket: " + ex.getMessage());