refactor(pe): move settings before load

This commit is contained in:
ineanto 2025-06-30 11:36:49 +02:00
parent a1e9684c08
commit 1a499fe7cc
Signed by: ineanto
GPG key ID: E511F9CAA2F9CE84

View file

@ -43,6 +43,7 @@ public class Nicko extends JavaPlugin {
@Override
public void onLoad() {
PacketEvents.setAPI(SpigotPacketEventsBuilder.build(this));
PacketEvents.getAPI().getSettings().checkForUpdates(false).kickOnPacketException(true);
PacketEvents.getAPI().load();
}
@ -51,7 +52,6 @@ public class Nicko extends JavaPlugin {
plugin = this;
PacketEvents.getAPI().init();
PacketEvents.getAPI().getSettings().checkForUpdates(false).kickOnPacketException(true);
configurationManager = new ConfigurationManager(getDataFolder());
configurationManager.saveDefaultConfig();