Skip to content

Commit

Permalink
修复更新检查无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CaaMoe committed Dec 18, 2022
1 parent deccc54 commit 566a2aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class MultiCore implements MultiCoreAPI {
@Getter
private final Gson gson;
@Getter
private final SemVersion semVersion;
private SemVersion semVersion;


/**
Expand All @@ -63,7 +63,6 @@ public MultiCore(IPlugin plugin) {
this.sqlManager = new SQLManager(this);
this.authHandler = new AuthHandler(this);
this.commandHandler = new CommandHandler(this);
this.semVersion = SemVersion.of(buildManifest.getVersion());
this.playerHandler = new PlayerHandler(this);
this.cacheWhitelistHandler = new CacheWhitelistHandler();
this.gson = new GsonBuilder()
Expand All @@ -87,6 +86,7 @@ public void load() throws IOException, SQLException, ClassNotFoundException, URI
playerHandler.register();
new CheckUpdater(this).start();

this.semVersion = SemVersion.of(buildManifest.getVersion());
LoggerProvider.getLogger().info(
String.format("Loaded, using MultiLogin v%s on %s - %s",
buildManifest.getVersion(), plugin.getRunServer().getName(), plugin.getRunServer().getVersion()
Expand Down

0 comments on commit 566a2aa

Please sign in to comment.