Push to 2.10.5 for release pt2

This commit is contained in:
darbyjack 2020-03-25 23:27:56 -05:00
parent ca0791f3af
commit bb639328a3
No known key found for this signature in database
GPG Key ID: 597C501782382437
2 changed files with 5 additions and 8 deletions

View File

@ -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() {

View File

@ -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;