9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 11:29:18 +00:00

clean: get static context correctly in main plugin class

This commit is contained in:
LoJoSho
2023-11-22 17:09:08 -06:00
parent 800d3be25f
commit d14698b282

View File

@@ -70,8 +70,8 @@ public final class HMCCosmeticsPlugin extends JavaPlugin {
// Update Checker
UpdateChecker checker = new UpdateChecker(this, UpdateCheckSource.POLYMART, "1879")
.onSuccess((commandSenders, latestVersion) -> {
this.latestVersion = (String) latestVersion;
if (!this.latestVersion.equalsIgnoreCase(getDescription().getVersion())) {
HMCCosmeticsPlugin.latestVersion = (String) latestVersion;
if (!HMCCosmeticsPlugin.latestVersion.equalsIgnoreCase(getDescription().getVersion())) {
getLogger().info("+++++++++++++++++++++++++++++++++++");
getLogger().info("There is a new update for HMCCosmetics!");
getLogger().info("Please download it as soon as possible for possible fixes and new features.");