From 8f7ec3d38a08a48ea5610d5edbe08365d121e85b Mon Sep 17 00:00:00 2001 From: retrooper Date: Mon, 27 Nov 2023 19:18:01 +0100 Subject: [PATCH] PacketEvents 2.1.0 release --- build.gradle | 2 +- .../io/github/retrooper/packetevents/PacketEventsPlugin.java | 2 +- .../io/github/retrooper/packetevents/PacketEventsPlugin.java | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 157ff90b3e..77b0964a8a 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ subprojects { group = 'com.github.retrooper' description = project.name - version = '2.1.0-SNAPSHOT'//TODO UPDATE - ADD "-SNAPSHOT" if we are dealing with snapshot versions + version = '2.1.0'//TODO UPDATE - ADD "-SNAPSHOT" if we are dealing with snapshot versions project.ext.nettyVersion = '4.1.72.Final' project.ext.adventureVersion = '4.14.0' project.ext.adventureDependencies=["net.kyori:adventure-api:${adventureVersion}", diff --git a/bungeecord/src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java b/bungeecord/src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java index 24e60ac644..53a6494aee 100644 --- a/bungeecord/src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java +++ b/bungeecord/src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java @@ -41,7 +41,7 @@ public void onLoad() { @Override public void onEnable() { // Register your listeners - PacketEvents.getAPI().getSettings().debug(true).bStats(true).checkForUpdates(true).timeStampMode(TimeStampMode.MILLIS).reEncodeByDefault(true); + PacketEvents.getAPI().getSettings().debug(true).bStats(true).checkForUpdates(true).timeStampMode(TimeStampMode.MILLIS).reEncodeByDefault(false); PacketEvents.getAPI().init(); PacketListenerCommon listener = new PacketListenerAbstract(PacketListenerPriority.HIGH) { @Override diff --git a/velocity/src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java b/velocity/src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java index b6b3efb8a9..c560849da0 100644 --- a/velocity/src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java +++ b/velocity/src/main/java/io/github/retrooper/packetevents/PacketEventsPlugin.java @@ -56,6 +56,7 @@ public void onProxyInitialize(ProxyInitializeEvent event) { logger.info("Injecting packetevents..."); PacketEvents.setAPI(VelocityPacketEventsBuilder.build(server, pluginContainer)); PacketEvents.getAPI().load(); + PacketEvents.getAPI().getSettings().reEncodeByDefault(false); // It should only be enabled in a development environment, not globally // PacketEvents.getAPI().getSettings().debug(true); PacketEvents.getAPI().getEventManager().registerListener(new PacketListenerAbstract() {