From d14698b282993637b9f118803b3ad535e010221d Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Wed, 22 Nov 2023 17:09:08 -0600 Subject: [PATCH] clean: get static context correctly in main plugin class --- .../java/com/hibiscusmc/hmccosmetics/HMCCosmeticsPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/HMCCosmeticsPlugin.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/HMCCosmeticsPlugin.java index a6458a2e..ea82bfb0 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/HMCCosmeticsPlugin.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/HMCCosmeticsPlugin.java @@ -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.");