Skip to content

Commit

Permalink
Updated to 1.8.2 (Support latest ProtocolLib snapshots & supposed to …
Browse files Browse the repository at this point in the history
…support future 5.0.0 release of protocollib)
  • Loading branch information
retrooper committed Mar 8, 2022
1 parent dc5d15b commit 825b61a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
}

group = 'io.github.retrooper'
version = '1.8.1'
version = '1.8.2'
description = 'packetevents'
java.sourceCompatibility = JavaVersion.VERSION_1_8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
public final class PacketEvents implements Listener, EventManager {
private static PacketEvents instance;
private static Plugin plugin;
private final PEVersion version = new PEVersion(1, 8, 1);
private final PEVersion version = new PEVersion(1, 8, 2);
private final EventManager eventManager = new PEEventManager();
private final PlayerUtils playerUtils = new PlayerUtils();
private final ServerUtils serverUtils = new ServerUtils();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static void postInitChannel(Channel channel) {
if (channel.pipeline().get("packet_handler") != null) {
String handlerName = PacketEvents.get().getHandlerName();
if (channel.pipeline().get(handlerName) != null) {
//Just ignore this to support latest ProtocolLib snapshots.
//PacketEvents.get().getPlugin().getLogger().warning("[PacketEvents] Attempted to initialize a channel twice!");
} else {
channel.pipeline().addBefore("packet_handler", handlerName, channelHandler);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: packetevents
version: 1.8.1
version: 1.8.2
main: io.github.retrooper.packetevents.PacketEventsPlugin
author: retrooper
softdepend:
Expand Down

0 comments on commit 825b61a

Please sign in to comment.