mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
More small changes
This commit is contained in:
1 parent
1a64403223
commit
8e92077bb6
23 files changed
+2026
-2399
No files matched your search
@@ -25,6 +25,7 @@ import org.bukkit.entity.Player;
|
||||
import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
|
||||
import com.rammelkast.anticheatreloaded.check.CheckType;
|
||||
import com.rammelkast.anticheatreloaded.config.Configuration;
|
||||
import com.rammelkast.anticheatreloaded.util.VersionUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -177,8 +178,7 @@ public class CheckManager {
|
||||
&& !type.checkPermission(player)
|
||||
&& !isOpExempt(player);
|
||||
AntiCheatReloaded.debugLog("Check " + type + (check ? " run " : " not run ") + "on " + player.getName());
|
||||
// TODO temp fix
|
||||
if ((type == CheckType.FLY || type == CheckType.SPEED) && player.isFlying())
|
||||
if ((type == CheckType.FLIGHT || type == CheckType.SPEED) && VersionUtil.isFlying(player))
|
||||
return false;
|
||||
return check;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user