Bugfix
If a plugin of T2Code was unloaded for example by PlugMan, then an error came in the UpdateChecker, this was fixed
This commit is contained in:
@@ -152,6 +152,9 @@ public class UpdateAPI {
|
||||
}
|
||||
|
||||
public void getVersion(Consumer<String> consumer, String Prefix, String pluginVersion) {
|
||||
if (!plugin.isEnabled()){
|
||||
return;
|
||||
}
|
||||
Bukkit.getScheduler().runTaskAsynchronously(this.plugin, () -> {
|
||||
try {
|
||||
InputStream inputStream = (new URL("https://api.spigotmc.org/legacy/update.php?resource=" + this.resourceId)).openStream();
|
||||
|
Reference in New Issue
Block a user