use new PluginMeta instead of getDescription

This commit is contained in:
Jack
2024-07-23 23:26:43 -04:00
parent 8280d9b78c
commit 92b92b5969

View File

@@ -173,8 +173,9 @@ public final class RealTimeWeather extends JavaPlugin {
}
}
@SuppressWarnings("UnstableApiUsage")
public String getUpdateCheck() {
String currentVersion = this.getDescription().getVersion();
String currentVersion = this.getPluginMeta().getVersion();
String latestVersion;
try {
debug("Getting latest version...");