Add messages for errors in LibsPremium and when commands are disabled
This commit is contained in:
		| @@ -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 | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user