But is required in case of fail

This commit is contained in:
Michel Roux 2012-05-15 09:05:44 +02:00
parent b92be6d2a9
commit b6dedbd13a

View File

@ -186,6 +186,7 @@ public class SimplyCommands implements CommandExecutor {
sender.sendMessage(ChatColor.GREEN + "Operation success !"); sender.sendMessage(ChatColor.GREEN + "Operation success !");
} catch (Exception e) { } catch (Exception e) {
plugin.reloadConfig(); plugin.reloadConfig();
plugin.refreshPermissions();
sender.sendMessage(ChatColor.RED + "An error occurred ! Please check server log..."); sender.sendMessage(ChatColor.RED + "An error occurred ! Please check server log...");
e.printStackTrace(); e.printStackTrace();
} }