use new PluginMeta instead of getDescription
This commit is contained in:
@@ -173,8 +173,9 @@ public final class RealTimeWeather extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("UnstableApiUsage")
|
||||||
public String getUpdateCheck() {
|
public String getUpdateCheck() {
|
||||||
String currentVersion = this.getDescription().getVersion();
|
String currentVersion = this.getPluginMeta().getVersion();
|
||||||
String latestVersion;
|
String latestVersion;
|
||||||
try {
|
try {
|
||||||
debug("Getting latest version...");
|
debug("Getting latest version...");
|
||||||
|
Reference in New Issue
Block a user