mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fix #21
This commit is contained in:
1 parent
3baa074b6f
commit
1e4aaab2c0
3 files changed
+3
-3
No files matched your search
@@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.gravitydevelopment.anticheat</groupId>
|
||||
<artifactId>AntiCheat</artifactId>
|
||||
<version>1.5.4-ALPHA</version>
|
||||
<version>1.5.5-ALPHA</version>
|
||||
<name>AntiCheatReloaded</name>
|
||||
<url>https://rammelkast.com</url>
|
||||
<properties>
|
||||
|
||||
@@ -51,7 +51,6 @@ public class AntiCheat extends JavaPlugin {
|
||||
private static Configuration config;
|
||||
private static boolean verbose;
|
||||
private static boolean developer;
|
||||
private static final int PROJECT_ID = 100229;
|
||||
private static ProtocolManager protocolManager;
|
||||
private static boolean protocolLib = false;
|
||||
private static Long loadTime;
|
||||
|
||||
@@ -5,6 +5,7 @@ import java.util.EnumSet;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
public class VersionUtil {
|
||||
|
||||
@@ -26,7 +27,7 @@ public class VersionUtil {
|
||||
|
||||
public static boolean isFlying(Player p) {
|
||||
if (getVersion().equals("v1_9_R1") || getVersion().equals("v1_10_R1") || getVersion().equals("v1_11_R1")) {
|
||||
return p.isFlying() || p.isGliding();
|
||||
return p.isFlying() || p.isGliding() || p.hasPotionEffect(PotionEffectType.LEVITATION);
|
||||
} else {
|
||||
return p.isFlying();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user