Skip to content

Commit

Permalink
PacketEvents 2.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
retrooper committed Nov 27, 2023
1 parent 4196999 commit 8f7ec3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8f7ec3d

Please sign in to comment.