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:
parent
8482f7f787
commit
15f2a5d422
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>net.t2code</groupId>
|
||||
<artifactId>T2CodeLib</artifactId>
|
||||
<version>10.9</version>
|
||||
<version>11.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>T2CodeLib</name>
|
||||
|
@ -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();
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: T2CodeLib
|
||||
version: 10.9
|
||||
version: 11.0
|
||||
main: net.t2code.lib.Bungee.BMain
|
||||
author: JaTiTV, Jkobs
|
||||
description: Libarie from T2Code Plugins
|
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
name: T2CodeLib
|
||||
version: 10.9
|
||||
version: 11.0
|
||||
main: net.t2code.lib.Spigot.system.Main
|
||||
api-version: 1.13
|
||||
prefix: T2CodeLib
|
||||
|
Loading…
Reference in New Issue
Block a user