diff --git a/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java b/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java index 9830b21..076d35a 100644 --- a/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java +++ b/src/main/java/me/clip/placeholderapi/PlaceholderAPIPlugin.java @@ -72,7 +72,7 @@ public class PlaceholderAPIPlugin extends JavaPlugin { Class.forName("org.spigotmc.SpigotConfig"); Class.forName("net.md_5.bungee.api.chat.BaseComponent"); spigot = true; - } catch (ExceptionInInitializerError | ClassNotFoundException exception) { + } catch (ExceptionInInitializerError | ClassNotFoundException ignored) { } return new Version(v, spigot); @@ -270,11 +270,10 @@ public class PlaceholderAPIPlugin extends JavaPlugin { public void enableCloud() { if (expansionCloud == null) { expansionCloud = new ExpansionCloudManager(this); - expansionCloud.fetch(config.cloudAllowUnverifiedExpansions()); } else { expansionCloud.clean(); - expansionCloud.fetch(config.cloudAllowUnverifiedExpansions()); } + expansionCloud.fetch(config.cloudAllowUnverifiedExpansions()); } public void disableCloud() { diff --git a/src/main/java/me/clip/placeholderapi/commands/PlaceholderAPICommands.java b/src/main/java/me/clip/placeholderapi/commands/PlaceholderAPICommands.java index be3639e..2d5a5f8 100644 --- a/src/main/java/me/clip/placeholderapi/commands/PlaceholderAPICommands.java +++ b/src/main/java/me/clip/placeholderapi/commands/PlaceholderAPICommands.java @@ -79,15 +79,13 @@ public class PlaceholderAPICommands implements CommandExecutor { "&fReload the config settings"); if (s.hasPermission("placeholderapi.ecloud")) { - if (plugin.getExpansionCloud() == null) { - Msg.msg(s, "&b/papi enablecloud", - "&fEnable the expansion cloud"); - } else { Msg.msg(s, "&b/papi disablecloud", "&fDisable the expansion cloud", "&b/papi ecloud", "&fView ecloud command usage"); - } + + Msg.msg(s, "&b/papi enablecloud", + "&fEnable the expansion cloud"); } return true;