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
|
@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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue