Fix a date issue being reversed

This commit is contained in:
libraryaddict 2019-11-14 11:15:40 +13:00
parent aad7001cbd
commit 418922606d

View File

@ -197,9 +197,9 @@ public class LibsPremium {
if (plugin.isPremium()) { if (plugin.isPremium()) {
if (!isValidVersion(version, plugin.getVersion()) || plugin.getUserID() == null || if (!isValidVersion(version, plugin.getVersion()) || plugin.getUserID() == null ||
plugin.getDownloadID() == null || plugin.getUserID().equals("666666") || plugin.getDownloadID() == null || plugin.getUserID().equals("666666") ||
plugin.getParsedBuildDate().before(getPluginInformation().getParsedBuildDate()) || plugin.getParsedBuildDate().after(getPluginInformation().getParsedBuildDate()) ||
plugin.getParsedBuildDate().after(new Date( plugin.getParsedBuildDate().before(new Date(
getPluginInformation().getParsedBuildDate().getTime() + getPluginInformation().getParsedBuildDate().getTime() -
TimeUnit.DAYS.toMillis(365 * 2)))) { TimeUnit.DAYS.toMillis(365 * 2)))) {
DisguiseUtilities.getLogger().warning( DisguiseUtilities.getLogger().warning(
"You have an old Lib's Disguises jar (" + file.getName() + " " + fileInfo + "You have an old Lib's Disguises jar (" + file.getName() + " " + fileInfo +