Change how we fetch PL version, move the code inside the if {}

This commit is contained in:
libraryaddict 2021-12-20 07:48:25 +13:00
parent 7fe95f00ec
commit e0e622d5f4

View File

@ -176,10 +176,10 @@ public class LibsDisguises extends JavaPlugin {
return; return;
} }
String requiredProtocolLib = StringUtils.join(DisguiseUtilities.getProtocolLibRequiredVersion(), " or build #");
String version = ProtocolLibrary.getPlugin().getDescription().getVersion();
if (DisguiseUtilities.isProtocolLibOutdated()) { if (DisguiseUtilities.isProtocolLibOutdated()) {
String requiredProtocolLib = StringUtils.join(DisguiseUtilities.getProtocolLibRequiredVersion(), " or build #");
String version = Bukkit.getPluginManager().getPlugin("ProtocolLib").getDescription().getVersion();
BukkitRunnable runnable = new BukkitRunnable() { BukkitRunnable runnable = new BukkitRunnable() {
private int timesRun; private int timesRun;