mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-13 15:16:50 +01:00
Give more verbose reason for updating ProtocolLib
This commit is contained in:
parent
33cb700aa1
commit
c5b791d43d
@ -89,7 +89,19 @@ public class LibsDisguises extends JavaPlugin {
|
||||
"Defined in plugins/LibsDisguises/configs/sanity.yml, you have requested that Lib's Disguises never updates or installs ProtocolLib. " +
|
||||
"Please do not report any issues with this plugin.");
|
||||
} else {
|
||||
getLogger().warning("Noticed you're using an older version of ProtocolLib (or not using it)! We're forcibly updating you!");
|
||||
String reason;
|
||||
|
||||
if (plugin == null) {
|
||||
reason = "ProtocolLib not installed";
|
||||
} else if (!plugin.isEnabled()) {
|
||||
reason = "ProtocolLib is not enabled";
|
||||
} else if (DisguiseUtilities.isProtocolLibOutdated()) {
|
||||
reason = "ProtocolLib is outdated";
|
||||
} else {
|
||||
reason = "Lib's Disguises couldn't process ProtocolLib properly";
|
||||
}
|
||||
|
||||
getLogger().warning("An issue occured when trying to load ProtocolLib: " + reason + ". Lib's Disguises will attempt to update it.");
|
||||
|
||||
try {
|
||||
File dest = DisguiseUtilities.updateProtocolLib();
|
||||
|
Loading…
Reference in New Issue
Block a user