Reload only specific entities (work in progress)

- Remove attempt of reinitializing all components -> will lead to inconsistent states. Call reload on reloadable components instead
This commit is contained in:
ljacqu
2016-03-09 18:39:04 +01:00
parent 4d55bedcaa
commit dfc713fde6
7 changed files with 33 additions and 85 deletions
@@ -18,7 +18,7 @@ public class ReloadCommand implements ExecutableCommand {
public void executeCommand(CommandSender sender, List<String> arguments, CommandService commandService) {
AuthMe plugin = commandService.getAuthMe();
try {
plugin.reloadEntities();
plugin.reload();
commandService.send(sender, MessageKey.CONFIG_RELOAD_SUCCESS);
} catch (Exception e) {
sender.sendMessage("Error occurred during reload of AuthMe: aborting");