mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-10-02 08:27:33 +02:00
Minecraft 1.8.5 compatibility.
This commit is contained in:
parent
c3b8bde799
commit
1699a7fa3a
@ -148,6 +148,12 @@
|
|||||||
<version>1.8.4</version>
|
<version>1.8.4</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bukkit</groupId>
|
||||||
|
<artifactId>spigot-185</artifactId>
|
||||||
|
<version>1.8.5</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.guava</groupId>
|
<groupId>com.google.guava</groupId>
|
||||||
<artifactId>guava</artifactId>
|
<artifactId>guava</artifactId>
|
||||||
|
8
pom.xml
8
pom.xml
@ -93,6 +93,14 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bukkit</groupId>
|
||||||
|
<artifactId>spigot-185</artifactId>
|
||||||
|
<version>1.8.5</version>
|
||||||
|
<type>jar</type>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- PircBotX -->
|
<!-- PircBotX -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.cnaude.pircbotx</groupId>
|
<groupId>com.cnaude.pircbotx</groupId>
|
||||||
|
@ -30,7 +30,7 @@ import net.minecraft.server.v1_8_R3.PlayerInteractManager;
|
|||||||
*
|
*
|
||||||
* @author cnaude
|
* @author cnaude
|
||||||
*/
|
*/
|
||||||
public class NetPacket_184 {
|
public class NetPacket_184_185 {
|
||||||
|
|
||||||
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));
|
@ -135,13 +135,13 @@ public class NetPackets {
|
|||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
plugin.logError("tabPacket: " + ex.getMessage());
|
plugin.logError("tabPacket: " + ex.getMessage());
|
||||||
}
|
}
|
||||||
} else if (version.contains("MC: 1.8.4")) {
|
} else if (version.contains("MC: 1.8.4") || version.contains("MC: 1.8.5")) {
|
||||||
try {
|
try {
|
||||||
if (add) {
|
if (add) {
|
||||||
return NetPacket_184.add(displayName);
|
return NetPacket_184_185.add(displayName);
|
||||||
} else {
|
} else {
|
||||||
plugin.logDebug("T: Removing: " + name);
|
plugin.logDebug("T: Removing: " + name);
|
||||||
return NetPacket_184.rem(displayName);
|
return NetPacket_184_185.rem(displayName);
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
plugin.logError("tabPacket: " + ex.getMessage());
|
plugin.logError("tabPacket: " + ex.getMessage());
|
||||||
|
Loading…
Reference in New Issue
Block a user