Merge remote-tracking branch 'refs/remotes/origin/develop' into update/moba-cosmetics
This commit is contained in:
commit
7667bf47c4
@ -110,12 +110,12 @@ public class AntiHack extends MiniPlugin
|
||||
public static final Map<Class<? extends Check>, AntiHackAction> ACTIONS = ImmutableMap.<Class<? extends Check>, AntiHackAction>builder()
|
||||
.put(KillauraTypeA.class, new ImmediateBanAction(200))
|
||||
//.put(KillauraTypeD.class, new BanwaveAction(1500))
|
||||
.put(KillauraTypeF.class, new BanwaveAction(600))
|
||||
//.put(KillauraTypeF.class, new BanwaveAction(600))
|
||||
.put(Glide.class, new ImmediateBanAction(10000))
|
||||
.put(Speed.class, new ImmediateBanAction(10000))
|
||||
.put(HeadRoll.class, new ImmediateBanAction(2000))
|
||||
.put(Toggle.class, new ImmediateBanAction(500))
|
||||
.put(Timer.class, new ImmediateBanAction(15000))
|
||||
.put(Timer.class, new ImmediateBanAction(10000))
|
||||
.put(BadPackets.class, new GEPBanAction(300))
|
||||
.put(KillauraTypeB.class, new GEPBanAction(100))
|
||||
.build();
|
||||
|
@ -20,7 +20,12 @@ import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.entity.ProjectileHitEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
|
||||
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.Rank;
|
||||
import mineplex.core.common.util.F;
|
||||
@ -189,6 +194,12 @@ public class Moba extends TeamGame
|
||||
caller.sendMessage(F.main("Kit", "Sorry that is not a kit!"));
|
||||
}
|
||||
});
|
||||
|
||||
// Disable specific GWEN checks for this game
|
||||
AntiHack antiHack = Managers.get(AntiHack.class);
|
||||
antiHack.addIgnoredCheck(Speed.class);
|
||||
antiHack.addIgnoredCheck(Glide.class);
|
||||
antiHack.addIgnoredCheck(HeadRoll.class);
|
||||
}
|
||||
|
||||
protected <T extends Listener> T registerManager(T listener)
|
||||
|
Loading…
Reference in New Issue
Block a user