Compare commits

...

2 commits

Author SHA1 Message Date
1a499fe7cc
refactor(pe): move settings before load 2025-06-30 11:37:18 +02:00
a1e9684c08
feat: remove paper plugin requirement 2025-06-30 11:34:30 +02:00
2 changed files with 1 additions and 1 deletions

View file

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