pull/1/head
JaTiTV 6 months ago
parent
commit
c395d2fa67
  1. 2
      CommandGUI V2/pom.xml
  2. 2
      CommandGUI V2/src/main/java/de/jatitv/commandguiv2/Spigot/Main.java

2
CommandGUI V2/pom.xml

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
<groupId>net.t2code</groupId>
<artifactId>CommandGUI_V2</artifactId>
<version>2.5.14</version>
<version>2.5.15</version>
<packaging>jar</packaging>
<name>CommandGUI</name>

2
CommandGUI V2/src/main/java/de/jatitv/commandguiv2/Spigot/Main.java

@ -100,7 +100,7 @@ public final class Main extends JavaPlugin { @@ -100,7 +100,7 @@ public final class Main extends JavaPlugin {
Main.plugin.getPluginLoader().disablePlugin(Main.plugin);
return true;
} else {
if (Double.parseDouble(Objects.requireNonNull(Bukkit.getPluginManager().getPlugin(pl)).getDescription().getVersion()) < ver) {
if (Double.parseDouble(Bukkit.getPluginManager().getPlugin(pl).getDescription().getVersion()) < ver) {
plugin.getLogger().log(Level.SEVERE, "Plugin can not be loaded!");
Bukkit.getConsoleSender().sendMessage(prefix + " §e" + pl + " §4is out of date! This plugin requires at least version §2" + ver + " §4of §6" + pl + " §4Please update it here: §6https://spigotmc.org/resources/" + pl + "." + spigotID + " §4to use this version of " + plugin.getDescription().getName() + ".");
Main.plugin.getPluginLoader().disablePlugin(Main.plugin);

Loading…
Cancel
Save