mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.gravitydevelopment.anticheat</groupId>
|
<groupId>net.gravitydevelopment.anticheat</groupId>
|
||||||
<artifactId>AntiCheat</artifactId>
|
<artifactId>AntiCheat</artifactId>
|
||||||
<version>1.5.4-ALPHA</version>
|
<version>1.5.5-ALPHA</version>
|
||||||
<name>AntiCheatReloaded</name>
|
<name>AntiCheatReloaded</name>
|
||||||
<url>https://rammelkast.com</url>
|
<url>https://rammelkast.com</url>
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ public class AntiCheat extends JavaPlugin {
|
|||||||
private static Configuration config;
|
private static Configuration config;
|
||||||
private static boolean verbose;
|
private static boolean verbose;
|
||||||
private static boolean developer;
|
private static boolean developer;
|
||||||
private static final int PROJECT_ID = 100229;
|
|
||||||
private static ProtocolManager protocolManager;
|
private static ProtocolManager protocolManager;
|
||||||
private static boolean protocolLib = false;
|
private static boolean protocolLib = false;
|
||||||
private static Long loadTime;
|
private static Long loadTime;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import java.util.EnumSet;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
public class VersionUtil {
|
public class VersionUtil {
|
||||||
|
|
||||||
@@ -26,7 +27,7 @@ public class VersionUtil {
|
|||||||
|
|
||||||
public static boolean isFlying(Player p) {
|
public static boolean isFlying(Player p) {
|
||||||
if (getVersion().equals("v1_9_R1") || getVersion().equals("v1_10_R1") || getVersion().equals("v1_11_R1")) {
|
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 {
|
} else {
|
||||||
return p.isFlying();
|
return p.isFlying();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user