Pass option to filter unverified expansions when calling fetch

This commit is contained in:
extendedclip 2018-04-20 22:56:06 -04:00
parent dd45bc16d0
commit 6eaad829cf

View File

@ -79,7 +79,7 @@ public class ExpansionCloudCommands implements CommandExecutor {
if (args[1].equalsIgnoreCase("refresh") || args[1].equalsIgnoreCase("update") || args[1].equalsIgnoreCase("fetch")) { if (args[1].equalsIgnoreCase("refresh") || args[1].equalsIgnoreCase("update") || args[1].equalsIgnoreCase("fetch")) {
msg(s, "&aRefresh task started. Use &f/papi ecloud list all &ain a few!!"); msg(s, "&aRefresh task started. Use &f/papi ecloud list all &ain a few!!");
plugin.getExpansionCloud().clean(); plugin.getExpansionCloud().clean();
plugin.getExpansionCloud().fetch(); plugin.getExpansionCloud().fetch(plugin.getPlaceholderAPIConfig().cloudAllowUnverifiedExpansions());
return true; return true;
} }