From 639b7967e357465439d7c4309065432f5b1675cd Mon Sep 17 00:00:00 2001 From: darbyjack Date: Sat, 20 Oct 2018 15:43:38 -0500 Subject: [PATCH] Refresh on download to fix the gold bug --- .../clip/placeholderapi/commands/ExpansionCloudCommands.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/commands/ExpansionCloudCommands.java b/src/main/java/me/clip/placeholderapi/commands/ExpansionCloudCommands.java index 56c3401..0c7ea57 100644 --- a/src/main/java/me/clip/placeholderapi/commands/ExpansionCloudCommands.java +++ b/src/main/java/me/clip/placeholderapi/commands/ExpansionCloudCommands.java @@ -73,8 +73,7 @@ public class ExpansionCloudCommands implements CommandExecutor { .equalsIgnoreCase("fetch")) { msg(s, "&aRefresh task started. Use &f/papi ecloud list all &ain a few!!"); plugin.getExpansionCloud().clean(); - plugin.getExpansionCloud() - .fetch(plugin.getPlaceholderAPIConfig().cloudAllowUnverifiedExpansions()); + plugin.getExpansionCloud().fetch(plugin.getPlaceholderAPIConfig().cloudAllowUnverifiedExpansions()); return true; } @@ -413,6 +412,8 @@ public class ExpansionCloudCommands implements CommandExecutor { + version); String player = ((s instanceof Player) ? s.getName() : null); plugin.getExpansionCloud().downloadExpansion(player, expansion, version); + plugin.getExpansionCloud().clean(); + plugin.getExpansionCloud().fetch(plugin.getPlaceholderAPIConfig().cloudAllowUnverifiedExpansions()); return true; }