Change how we fetch PL version, move the code inside the if {}
This commit is contained in:
		| @@ -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; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user