Add message for when config is reloaded
This commit is contained in:
parent
1273936d76
commit
9257ea1bdb
|
@ -23,8 +23,14 @@ public class ESReloadCommand implements CommandExecutor {
|
||||||
ConfigFile.getConfig().reloadConfig();
|
ConfigFile.getConfig().reloadConfig();
|
||||||
PlayersFile.getConfig().reloadConfig();
|
PlayersFile.getConfig().reloadConfig();
|
||||||
|
|
||||||
// Recache the systems
|
// Re-cache the systems
|
||||||
|
try {
|
||||||
Reference.ES_SYSTEMS = PlayersFile.getAllSystems();
|
Reference.ES_SYSTEMS = PlayersFile.getAllSystems();
|
||||||
|
sender.sendMessage(Reference.PREFIX + ChatColor.GREEN + "Reloaded!");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
sender.sendMessage(Reference.PREFIX + ChatColor.RED + "Failed to Reload!");
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue