Add messages for errors in LibsPremium and when commands are disabled

This commit is contained in:
libraryaddict 2018-12-19 15:10:15 +13:00
parent 40ef2159c8
commit 43701c1fe8
2 changed files with 7 additions and 0 deletions

@ -85,6 +85,8 @@ public class LibsDisguises extends JavaPlugin {
registerCommand("disguisemodifyplayer", new DisguiseModifyPlayerCommand());
registerCommand("disguisemodifyradius",
new DisguiseModifyRadiusCommand(getConfig().getInt("DisguiseRadiusMax")));
} else {
getLogger().info("Commands has been disabled, as per config");
}
infectWithMetrics();

@ -57,7 +57,12 @@ public class LibsPremium {
") in the folder!");
}
}
catch (ClassNotFoundException ex) {
DisguiseUtilities.getLogger()
.warning("Found an unrecognized jar in the LibsDisguises folder (" + file.getName() + ")");
}
catch (Exception ex) {
DisguiseUtilities.getLogger().warning("Error while trying to handle the file " + file.getName());
ex.printStackTrace();
// Don't print off errors
}