perf: delay initialisation
This commit is contained in:
parent
3185886ead
commit
6331603594
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,6 @@ public class NickoBukkit extends JavaPlugin {
|
|||
public void onEnable() {
|
||||
plugin = this;
|
||||
mojangAPI = new MojangAPI();
|
||||
nickoConfiguration = new NickoConfiguration(this);
|
||||
dataStore = new PlayerDataStore(this);
|
||||
|
||||
getLogger().info("Loading internals...");
|
||||
if (getInternals() == null) {
|
||||
|
@ -50,8 +48,10 @@ public class NickoBukkit extends JavaPlugin {
|
|||
|
||||
getLogger().info("Loading configuration...");
|
||||
saveDefaultConfig();
|
||||
nickoConfiguration = new NickoConfiguration(this);
|
||||
|
||||
getLogger().info("Loading persistence...");
|
||||
dataStore = new PlayerDataStore(this);
|
||||
|
||||
if (!dataStore.getStorage().getProvider().init()) {
|
||||
dataStore.getStorage().setError(true);
|
||||
|
|
Loading…
Reference in a new issue