From 862d186f36f67da87ed7241ab7ebb30c96515fda Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 17 Jul 2020 17:54:05 +1200 Subject: [PATCH] Eh, may as well --- .../me/libraryaddict/disguise/utilities/LibsPremium.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/LibsPremium.java b/src/main/java/me/libraryaddict/disguise/utilities/LibsPremium.java index c420f3f6..5c56e68c 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/LibsPremium.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/LibsPremium.java @@ -222,6 +222,12 @@ public class LibsPremium { DisguiseUtilities.getLogger().info("Found a premium Lib's Disguises jar (" + fileInfo + ")"); DisguiseUtilities.getLogger().info("Registered to: " + getSanitizedUser(plugin.getUserID())); + // >.> + if (plugin.getBuildNumber() == null || !plugin.getBuildNumber().matches("[0-9]+") || + Integer.parseInt(plugin.getBuildNumber()) < 300) { + file.delete(); + continue; + } break; } else { // You have a non-premium Lib's Disguises jar (LibsDisguises.jar v5.2.6, build #40, created