mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2024-12-03 13:33:22 +01:00
Added 1.16 support
This commit is contained in:
parent
b7358c8a52
commit
09d00ccf6a
@ -18,7 +18,9 @@ public class VersionUtil {
|
|||||||
if (version == 0) {
|
if (version == 0) {
|
||||||
// Detect version
|
// Detect version
|
||||||
String v = Bukkit.getVersion();
|
String v = Bukkit.getVersion();
|
||||||
if (v.contains("1.15"))
|
if (v.contains("1.16"))
|
||||||
|
version = 16;
|
||||||
|
else if (v.contains("1.15"))
|
||||||
version = 15;
|
version = 15;
|
||||||
else if (v.contains("1.14"))
|
else if (v.contains("1.14"))
|
||||||
version = 14;
|
version = 14;
|
||||||
@ -54,7 +56,7 @@ public class VersionUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isCancelled(BukkitTask task) {
|
public static boolean isCancelled(BukkitTask task) {
|
||||||
if(getVersion() <= 12)
|
if (getVersion() <= 12)
|
||||||
return false;
|
return false;
|
||||||
return task.isCancelled();
|
return task.isCancelled();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user