Add more info for setting up prem

This commit is contained in:
libraryaddict 2019-12-22 10:46:37 +13:00
parent 53768a29d3
commit c83283f43e

View File

@ -162,6 +162,7 @@ public class LibsPremium {
private static void doSecondaryCheck(String version) {
File[] files = new File("plugins/LibsDisguises/").listFiles();
boolean foundJar = false;
if (files == null)
return;
@ -173,6 +174,8 @@ public class LibsPremium {
if (!file.getName().endsWith(".jar"))
continue;
foundJar = true;
PluginInformation plugin;
try {
@ -219,8 +222,17 @@ public class LibsPremium {
DisguiseUtilities.getLogger().warning(
"You have a non-premium Lib's Disguises jar (" + file.getName() + " " + fileInfo +
") in the LibsDisguises folder!");
DisguiseUtilities.getLogger().warning(
"Please place the premium jar downloaded from https://www.spigotmc" +
".org/resources/libs-disguises.32453/ " + "in here!");
}
}
if (!foundJar) {
DisguiseUtilities.getLogger().warning(
"If you own the plugin, place the premium jar downloaded from https://www.spigotmc" +
".org/resources/libs-disguises.32453/ in " + new File("plugins/LibsDisguises/").getPath());
}
}
private static String getSanitizedUser(String userID) {