refactor(pe): move settings before load
This commit is contained in:
parent
a1e9684c08
commit
1a499fe7cc
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue