mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 05:26:19 +01:00
Add support for MC 1.8.7.
This commit is contained in:
parent
c8c61949a6
commit
785a5ad5a9
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<!-- Bukkit API Version, change if out dated -->
|
||||
<bukkit.version>1.8.6</bukkit.version>
|
||||
<bukkit.version>1.8.7</bukkit.version>
|
||||
<build.number>SNAPSHOT</build.number>
|
||||
</properties>
|
||||
|
||||
|
@ -30,7 +30,7 @@ import net.minecraft.server.v1_8_R3.PlayerInteractManager;
|
||||
*
|
||||
* @author cnaude
|
||||
*/
|
||||
public class NetPacket_184_185_186 {
|
||||
public class NetPacket_184_185_186_187 {
|
||||
|
||||
public static PacketContainer add(String displayName) {
|
||||
UUID uuid = UUID.nameUUIDFromBytes(("OfflinePlayer:" + displayName).getBytes(Charsets.UTF_8));
|
@ -137,13 +137,14 @@ public class NetPackets {
|
||||
}
|
||||
} else if (version.contains("MC: 1.8.4")
|
||||
|| version.contains("MC: 1.8.5")
|
||||
|| version.contains("MC: 1.8.6")) {
|
||||
|| version.contains("MC: 1.8.6")
|
||||
|| version.contains("MC: 1.8.7")) {
|
||||
try {
|
||||
if (add) {
|
||||
return NetPacket_184_185_186.add(displayName);
|
||||
return NetPacket_184_185_186_187.add(displayName);
|
||||
} else {
|
||||
plugin.logDebug("T: Removing: " + name);
|
||||
return NetPacket_184_185_186.rem(displayName);
|
||||
return NetPacket_184_185_186_187.rem(displayName);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
plugin.logError("tabPacket: " + ex.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user