Refactored update checker

This commit is contained in:
extendedclip
2018-04-20 23:01:01 -04:00
parent 763c0aabc1
commit 3a5e3ed950
2 changed files with 55 additions and 76 deletions

View File

@@ -84,7 +84,7 @@ public class PlaceholderAPIPlugin extends JavaPlugin {
getLogger().info("Placeholder expansion registration initializing...");
expansionManager.registerAllExpansions();
if (config.checkUpdates()) {
new UpdateChecker(this);
new UpdateChecker(this).fetch();
}
if (config.isCloudEnabled()) {
enableCloud();