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) { private static void doSecondaryCheck(String version) {
File[] files = new File("plugins/LibsDisguises/").listFiles(); File[] files = new File("plugins/LibsDisguises/").listFiles();
boolean foundJar = false;
if (files == null) if (files == null)
return; return;
@ -173,6 +174,8 @@ public class LibsPremium {
if (!file.getName().endsWith(".jar")) if (!file.getName().endsWith(".jar"))
continue; continue;
foundJar = true;
PluginInformation plugin; PluginInformation plugin;
try { try {
@ -219,8 +222,17 @@ public class LibsPremium {
DisguiseUtilities.getLogger().warning( DisguiseUtilities.getLogger().warning(
"You have a non-premium Lib's Disguises jar (" + file.getName() + " " + fileInfo + "You have a non-premium Lib's Disguises jar (" + file.getName() + " " + fileInfo +
") in the LibsDisguises folder!"); ") 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) { private static String getSanitizedUser(String userID) {