Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove deprecated protocollib methods.
  • Loading branch information
cnaude committed Oct 30, 2014
1 parent 86e76a3 commit 229b16e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
8 changes: 7 additions & 1 deletion dependency-reduced-pom.xml
Expand Up @@ -152,6 +152,12 @@
<artifactId>ReportRTS</artifactId>
<version>1.2.3</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<artifactId>ProtocolLib</artifactId>
<groupId>com.comphenix.protocol</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.cnaude.herochat</groupId>
Expand Down Expand Up @@ -234,7 +240,7 @@
<dependency>
<groupId>com.cnaude.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
8 changes: 7 additions & 1 deletion pom.xml
Expand Up @@ -97,6 +97,12 @@
<groupId>com.nyancraft.reportrts</groupId>
<artifactId>ReportRTS</artifactId>
<version>1.2.3</version>
<exclusions>
<exclusion>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- Herochat -->
Expand Down Expand Up @@ -194,7 +200,7 @@
<dependency>
<groupId>com.cnaude.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
</dependency>

<!-- PircBotX -->
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/cnaude/purpleirc/Utilities/NetPackets.java
Expand Up @@ -18,7 +18,7 @@

import com.cnaude.purpleirc.PurpleBot;
import com.cnaude.purpleirc.PurpleIRC;
import com.comphenix.protocol.Packets;
import com.comphenix.protocol.PacketType;;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.ProtocolManager;
import com.comphenix.protocol.events.PacketContainer;
Expand Down Expand Up @@ -65,7 +65,7 @@ public void addToTabList(String name, PurpleBot ircBot, Channel channel) {
return;
}
}
playerListConstructor = protocolManager.createPacketConstructor(Packets.Server.PLAYER_INFO, "", false, (int) 0);
playerListConstructor = protocolManager.createPacketConstructor(PacketType.Play.Server.PLAYER_INFO, "", false, (int) 0);
try {

PacketContainer packet = playerListConstructor.createPacket(
Expand All @@ -88,7 +88,7 @@ public void remFromTabList(String name) {
if (! plugin.customTabList) {
return;
}
playerListConstructor = protocolManager.createPacketConstructor(Packets.Server.PLAYER_INFO, "", false, (int) 0);
playerListConstructor = protocolManager.createPacketConstructor(PacketType.Play.Server.PLAYER_INFO, "", false, (int) 0);
try {
PacketContainer packet = playerListConstructor.createPacket(
truncateName(plugin.customTabPrefix + name), false, 0);
Expand Down

0 comments on commit 229b16e

Please sign in to comment.