Add messages for errors in LibsPremium and when commands are disabled
This commit is contained in:
parent
40ef2159c8
commit
43701c1fe8
@ -85,6 +85,8 @@ public class LibsDisguises extends JavaPlugin {
|
|||||||
registerCommand("disguisemodifyplayer", new DisguiseModifyPlayerCommand());
|
registerCommand("disguisemodifyplayer", new DisguiseModifyPlayerCommand());
|
||||||
registerCommand("disguisemodifyradius",
|
registerCommand("disguisemodifyradius",
|
||||||
new DisguiseModifyRadiusCommand(getConfig().getInt("DisguiseRadiusMax")));
|
new DisguiseModifyRadiusCommand(getConfig().getInt("DisguiseRadiusMax")));
|
||||||
|
} else {
|
||||||
|
getLogger().info("Commands has been disabled, as per config");
|
||||||
}
|
}
|
||||||
|
|
||||||
infectWithMetrics();
|
infectWithMetrics();
|
||||||
|
@ -57,7 +57,12 @@ public class LibsPremium {
|
|||||||
") in the folder!");
|
") in the folder!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (ClassNotFoundException ex) {
|
||||||
|
DisguiseUtilities.getLogger()
|
||||||
|
.warning("Found an unrecognized jar in the LibsDisguises folder (" + file.getName() + ")");
|
||||||
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
|
DisguiseUtilities.getLogger().warning("Error while trying to handle the file " + file.getName());
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
// Don't print off errors
|
// Don't print off errors
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user