From 53768a29d340f5e48843e3f2474caf0298aa7176 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 22 Dec 2019 10:15:52 +1300 Subject: [PATCH] Add pi rate checking for main plugin --- .../java/me/libraryaddict/disguise/LibsDisguises.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java index b3edb5c2..16372eaf 100644 --- a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java @@ -56,8 +56,9 @@ public class LibsDisguises extends JavaPlugin { LibsPremium.check(getDescription().getVersion(), getFile()); if (!LibsPremium.isPremium()) { - getLogger().info("You are running the free version, commands limited to non-players and operators. (Console, Command " + - "Blocks, Admins)"); + getLogger() + .info("You are running the free version, commands limited to non-players and operators. (Console," + + " Command " + "Blocks, Admins)"); } if (!ReflectionManager.getMinecraftVersion().startsWith("1.15")) { @@ -240,8 +241,10 @@ public class LibsDisguises extends JavaPlugin { } // Invalidate invalid distribution - if (LibsPremium.isPremium() && LibsPremium.getPaidInformation() != null && - !LibsPremium.getPaidInformation().isLegit()) { + if (LibsPremium.isPremium() && + ((LibsPremium.getPaidInformation() != null && !LibsPremium.getPaidInformation().isLegit()) || + (LibsPremium.getPluginInformation() != null && + LibsPremium.getPluginInformation().isLegit()))) { throw new IllegalStateException( "Error while checking pi rate on startup! Please re-download the jar from SpigotMC before " + "reporting this error!");