@Override public String execute(String cmd, String args, AbstractClient commandOwner) { ClientUtils.sendMessageToOpChat(commandOwner.getNick() + " called !reload command."); ClientUtils.broadcastTextMessageFromHub("Hub will be freezed due to configs loading..."); try { Thread.sleep(timeout); } catch (InterruptedException ex) { // ignored } String result; if (ConfigurationManager.getInstance().loadConfigs()) { result = "Configs reloaded."; commandOwner.sendPrivateMessageFromHub(result); } else { result = "Configs doesn\'t reloaded. See logs for more information."; commandOwner.sendPrivateMessageFromHub(result); } return result; }