Compare commits
2 commits
3f697c3e23
...
1a499fe7cc
Author | SHA1 | Date | |
---|---|---|---|
1a499fe7cc | |||
a1e9684c08 |
2 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