9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-19 14:59:21 +00:00

build: suppress some warnings in Packet-Events

This commit is contained in:
William278
2025-01-26 17:42:28 +00:00
parent a0fb2e90b3
commit 07228c3661

View File

@@ -40,10 +40,11 @@ public class BukkitPacketEventsLockedPacketListener extends BukkitLockedEventLis
}
@Override
@SuppressWarnings("UnstableApiUsage")
public void onLoad() {
super.onLoad();
PacketEvents.setAPI(SpigotPacketEventsBuilder.build(getPlugin()));
PacketEvents.getAPI().getSettings().reEncodeByDefault(false).checkForUpdates(false).bStats(true);
PacketEvents.getAPI().getSettings().reEncodeByDefault(false).checkForUpdates(false);
PacketEvents.getAPI().load();
}