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