From 3c8ef4252260652a14dcec75085be1ae8a550f5d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 9 Jun 2017 03:07:49 +1200 Subject: [PATCH] Make backwards premium only --- .../disguise/utilities/backwards/BackwardsSupport.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/backwards/BackwardsSupport.java b/src/me/libraryaddict/disguise/utilities/backwards/BackwardsSupport.java index fcb2332e..16aa6eb1 100644 --- a/src/me/libraryaddict/disguise/utilities/backwards/BackwardsSupport.java +++ b/src/me/libraryaddict/disguise/utilities/backwards/BackwardsSupport.java @@ -1,6 +1,7 @@ package me.libraryaddict.disguise.utilities.backwards; import me.libraryaddict.disguise.disguisetypes.MetaIndex; +import me.libraryaddict.disguise.utilities.LibsVersion; import me.libraryaddict.disguise.utilities.ReflectionManager; import me.libraryaddict.disguise.utilities.backwards.metadata.Version_1_1; @@ -14,8 +15,10 @@ public class BackwardsSupport { try { String version = ReflectionManager.getBukkitVersion(); - if (version.equals("v1_11_R1")) { - return setupMetadata(Version_1_1.class); + if (LibsVersion.isPremium()) { + if (version.equals("v1_11_R1")) { + return setupMetadata(Version_1_1.class); + } } return setupMetadata(BackwardMethods.class);