Anticheat updates

This commit is contained in:
AlexTheCoder 2018-06-01 00:26:45 -04:00
parent d7db64da84
commit 1e039d2824
2 changed files with 12 additions and 1 deletions

View File

@ -47,7 +47,7 @@
<dependency>
<groupId>com.mineplex</groupId>
<artifactId>anticheat</artifactId>
<version>1.11.3</version>
<version>1.12</version>
</dependency>
<dependency>
<groupId>org.tukaani</groupId>

View File

@ -46,7 +46,12 @@ import org.bukkit.potion.PotionEffectType;
import org.bukkit.scheduler.BukkitRunnable;
import com.google.common.collect.Lists;
import com.mineplex.anticheat.checks.move.Glide;
import com.mineplex.anticheat.checks.move.HeadRoll;
import com.mineplex.anticheat.checks.move.Speed;
import mineplex.core.Managers;
import mineplex.core.antihack.AntiHack;
import mineplex.core.common.Pair;
import mineplex.core.common.util.C;
import mineplex.core.common.util.F;
@ -255,6 +260,12 @@ public class BawkBawkBattles extends TeamGame implements IThrown
Manager.GetCreature().SetDisableCustomDrops(true);
GlideCheckEnabled = false;
AntiHack antiHack = Managers.get(AntiHack.class);
antiHack.addIgnoredCheck(Speed.class);
antiHack.addIgnoredCheck(Glide.class);
antiHack.addIgnoredCheck(HeadRoll.class);
populateChallenges();
registerStatTrackers(