Add small note to config yml & corrected a check
This commit is contained in:
@@ -11,6 +11,8 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
import java.util.Date;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* Created by libraryaddict on 2/06/2017.
|
||||
@@ -194,7 +196,11 @@ public class LibsPremium {
|
||||
|
||||
if (plugin.isPremium()) {
|
||||
if (!isValidVersion(version, plugin.getVersion()) || plugin.getUserID() == null ||
|
||||
plugin.getDownloadID() == null) {
|
||||
plugin.getDownloadID() == null || plugin.getUserID().equals("666666") ||
|
||||
plugin.getParsedBuildDate().before(getPluginInformation().getParsedBuildDate()) ||
|
||||
plugin.getParsedBuildDate().after(new Date(
|
||||
getPluginInformation().getParsedBuildDate().getTime() +
|
||||
TimeUnit.DAYS.toMillis(365 * 2)))) {
|
||||
DisguiseUtilities.getLogger().warning(
|
||||
"You have an old Lib's Disguises jar (" + file.getName() + " " + fileInfo +
|
||||
") in the LibsDisguises folder! For security purposes, please replace this with a" +
|
||||
|
Reference in New Issue
Block a user