Remove old magic.yml contents, fix riptide false positive

This commit is contained in:
Rammelkast committed 2020-05-19 13:20:39 +02:00
1 parent f94a430d41
commit 37d580a4ba
4 files changed
+8 -8

No files matched your search

@@ -121,6 +121,7 @@ public class SpeedCheck {
&& (distance.getYDifference() > backend.getMagic().Y_SPEED_MAX())
&& !backend.isDoing(player, backend.velocitized, backend.getMagic().VELOCITY_TIME())
&& !player.hasPotionEffect(PotionEffectType.JUMP) && !VersionUtil.isFlying(player)
&& !VersionUtil.isRiptiding(player)
&& !Utilities.isNearBed(distance.getTo())
&& !Utilities.isSlime(AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId())
.getGoodLocation(player.getLocation()).getBlock())) {
@@ -382,10 +382,6 @@ public interface Magic {
* The maximum amount of violations before flagging player as a cheater; TYPE=INTEGER, Leniency=INCREASE
*/
public int KILLAURA_MAX_ANGLE_VIOLATIONS();
/**
* The minimum score difference for the fight speed check to consider a player legit; TYPE=INTEGER, Leniency=DECREASE
*/
public int KILLAURA_FIGHTSPEED_MINDIFF();
/**
* The maximum angle difference allowed when breaking or placing blocks; TYPE=INTEGER, Leniency=INCREASE
*/
@@ -69,6 +69,13 @@ public class VersionUtil {
}
return p.isFlying() || p.isGliding() || p.hasPotionEffect(PotionEffectType.LEVITATION);
}
public static boolean isRiptiding(Player player) {
if (isBountifulUpdate()) {
return false;
}
return player.isRiptiding();
}
public static boolean isSlowFalling(Player player) {
if (isBountifulUpdate()) {
-4
View File
@@ -262,10 +262,6 @@ KILLAURA_MAX_ANGLE_DIFFERENCE: 50
# The maximum amount of violations before flagging player as a cheater
# Increase this in case of false positives
KILLAURA_MAX_ANGLE_VIOLATIONS: 3
# The minimum score difference for the fight speed check to consider a player legit
# Increasing this will tighten check but might punish combat consistancy
# Decrease this in case of false positives
KILLAURA_FIGHTSPEED_MINDIFF: 3
# The maximum angle difference allowed when placing or breaking a block
# Increase this in case of false positives, can be slightly decreased to tighten check
ILLEGALINTERACT_MAX_ANGLE_DIFFERENCE: 75