mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-05 18:09:37 +01:00
Minecraft 1.8.6 compatibility.
This commit is contained in:
parent
1699a7fa3a
commit
e7bc3f5f85
@ -133,7 +133,7 @@
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.8.4</version>
|
||||
<version>1.8.6</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -148,12 +148,6 @@
|
||||
<version>1.8.4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>spigot-185</artifactId>
|
||||
<version>1.8.5</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
@ -368,7 +362,7 @@
|
||||
<properties>
|
||||
<build.number>SNAPSHOT</build.number>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<bukkit.version>1.8.4</bukkit.version>
|
||||
<bukkit.version>1.8.6</bukkit.version>
|
||||
</properties>
|
||||
</project>
|
||||
|
||||
|
10
pom.xml
10
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.4</bukkit.version>
|
||||
<bukkit.version>1.8.6</bukkit.version>
|
||||
<build.number>SNAPSHOT</build.number>
|
||||
</properties>
|
||||
|
||||
@ -93,14 +93,6 @@
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>spigot-185</artifactId>
|
||||
<version>1.8.5</version>
|
||||
<type>jar</type>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- PircBotX -->
|
||||
<dependency>
|
||||
<groupId>com.cnaude.pircbotx</groupId>
|
||||
|
@ -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));
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user