Skip to content

Commit

Permalink
Postpone online check to after initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
rlf committed Aug 7, 2016
1 parent f206b22 commit 7dfdb9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ public void onEnable() {
missingRequirements = null;
instance = this;
CommandManager.registerRequirements(this);
ServerUtil.init(this);
FileUtil.setDataFolder(getDataFolder());
FileUtil.setAllwaysOverwrite("levelConfig.yml");
I18nUtil.setDataFolder(getDataFolder());
Expand All @@ -215,6 +214,7 @@ public void onEnable() {
getServer().getScheduler().runTaskLater(getInstance(), new Runnable() {
@Override
public void run() {
ServerUtil.init(uSkyBlock.this);
if (!isRequirementsMet(Bukkit.getConsoleSender(), null)) {
return;
}
Expand Down

0 comments on commit 7dfdb9f

Please sign in to comment.