From 418922606d583e803577add3a6656271819b630b Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 14 Nov 2019 11:15:40 +1300 Subject: [PATCH] Fix a date issue being reversed --- .../me/libraryaddict/disguise/utilities/LibsPremium.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/LibsPremium.java b/src/main/java/me/libraryaddict/disguise/utilities/LibsPremium.java index ded30cd6..33d93225 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/LibsPremium.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/LibsPremium.java @@ -197,9 +197,9 @@ public class LibsPremium { if (plugin.isPremium()) { if (!isValidVersion(version, plugin.getVersion()) || plugin.getUserID() == null || plugin.getDownloadID() == null || plugin.getUserID().equals("666666") || - plugin.getParsedBuildDate().before(getPluginInformation().getParsedBuildDate()) || - plugin.getParsedBuildDate().after(new Date( - getPluginInformation().getParsedBuildDate().getTime() + + plugin.getParsedBuildDate().after(getPluginInformation().getParsedBuildDate()) || + plugin.getParsedBuildDate().before(new Date( + getPluginInformation().getParsedBuildDate().getTime() - TimeUnit.DAYS.toMillis(365 * 2)))) { DisguiseUtilities.getLogger().warning( "You have an old Lib's Disguises jar (" + file.getName() + " " + fileInfo +