Fixed bug where AllLoaded method was not being called on BentoBox reload

This commit is contained in:
tastybento 2021-03-06 15:08:54 -08:00
parent e4a8d705f1
commit 9c1a239501

View File

@ -61,6 +61,9 @@ public class BentoBoxReloadCommand extends ConfirmableCommand {
// Register new default gamemode placeholders // Register new default gamemode placeholders
getPlugin().getAddonsManager().getGameModeAddons().forEach(getPlugin().getPlaceholdersManager()::registerDefaultPlaceholders); getPlugin().getAddonsManager().getGameModeAddons().forEach(getPlugin().getPlaceholdersManager()::registerDefaultPlaceholders);
// Call the all Loaded method for addons
getPlugin().getAddonsManager().allLoaded();
// Fire ready event // Fire ready event
Bukkit.getPluginManager().callEvent(new BentoBoxReadyEvent()); Bukkit.getPluginManager().callEvent(new BentoBoxReadyEvent());
}); });