Disable glide checks in Nano Games

This commit is contained in:
AlexTheCoder 2018-09-18 23:50:06 -05:00
parent e14a18bcad
commit bef370c077
2 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,6 @@ import mineplex.core.newnpc.NewNPCManager;
import mineplex.core.packethandler.PacketHandler; import mineplex.core.packethandler.PacketHandler;
import mineplex.core.serverConfig.ServerConfiguration; import mineplex.core.serverConfig.ServerConfiguration;
import mineplex.core.stats.StatsManager; import mineplex.core.stats.StatsManager;
import mineplex.core.status.ServerStatusManager;
import mineplex.core.task.TaskManager; import mineplex.core.task.TaskManager;
import mineplex.game.nano.commands.game.GameCommand; import mineplex.game.nano.commands.game.GameCommand;
import mineplex.game.nano.commands.spectator.SpectatorCommand; import mineplex.game.nano.commands.spectator.SpectatorCommand;

View File

@ -8,6 +8,8 @@ import org.bukkit.Location;
import org.bukkit.Sound; import org.bukkit.Sound;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import com.mineplex.anticheat.checks.move.Glide;
import mineplex.core.antihack.AntiHack; import mineplex.core.antihack.AntiHack;
import mineplex.core.common.util.UtilServer; import mineplex.core.common.util.UtilServer;
import mineplex.core.lifetimes.Lifetimed; import mineplex.core.lifetimes.Lifetimed;
@ -96,6 +98,8 @@ public abstract class Game extends ListenerComponent implements Lifetimed, TeamC
_endComponent = new GameEndComponent(this); _endComponent = new GameEndComponent(this);
new GeneralStatsTracker(this); new GeneralStatsTracker(this);
manager.getAntiHack().addIgnoredCheck(Glide.class);
} }
public final void setupGameWorld(File mapZip) public final void setupGameWorld(File mapZip)