Add message for when config is reloaded

This commit is contained in:
SeanOMik 2020-07-06 23:33:45 -05:00
parent 1273936d76
commit 9257ea1bdb
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
1 changed files with 8 additions and 2 deletions

View File

@ -23,8 +23,14 @@ public class ESReloadCommand implements CommandExecutor {
ConfigFile.getConfig().reloadConfig();
PlayersFile.getConfig().reloadConfig();
// Recache the systems
// Re-cache the systems
try {
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;
}