mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-18 00:46:55 +01:00
Refresh on download to fix the gold bug
This commit is contained in:
parent
90bc3c8da1
commit
639b7967e3
@ -73,8 +73,7 @@ public class ExpansionCloudCommands implements CommandExecutor {
|
|||||||
.equalsIgnoreCase("fetch")) {
|
.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()
|
plugin.getExpansionCloud().fetch(plugin.getPlaceholderAPIConfig().cloudAllowUnverifiedExpansions());
|
||||||
.fetch(plugin.getPlaceholderAPIConfig().cloudAllowUnverifiedExpansions());
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -413,6 +412,8 @@ public class ExpansionCloudCommands implements CommandExecutor {
|
|||||||
+ version);
|
+ version);
|
||||||
String player = ((s instanceof Player) ? s.getName() : null);
|
String player = ((s instanceof Player) ? s.getName() : null);
|
||||||
plugin.getExpansionCloud().downloadExpansion(player, expansion, version);
|
plugin.getExpansionCloud().downloadExpansion(player, expansion, version);
|
||||||
|
plugin.getExpansionCloud().clean();
|
||||||
|
plugin.getExpansionCloud().fetch(plugin.getPlaceholderAPIConfig().cloudAllowUnverifiedExpansions());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user