Search in sources :

Example 1 with CheckListeners

use of mc.dragons.anticheat.event.CheckListeners in project DragonsOnline by UniverseCraft.

the class DragonsAntiCheat method onEnable.

@Override
public void onEnable() {
    enableDebugLogging();
    combatRewinder = new CombatRewinder(this);
    CommandExecutor ac = new AntiCheatCommand(this);
    getCommand("ac").setExecutor(ac);
    getCommand("acdebug").setExecutor(ac);
    getCommand("acflushlog").setExecutor(ac);
    getCommand("acstartlog").setExecutor(ac);
    getCommand("acblockdata").setExecutor(ac);
    getCommand("acban").setExecutor(ac);
    getCommand("ackick").setExecutor(ac);
    getCommand("acdump").setExecutor(ac);
    getCommand("acresetplayer").setExecutor(ac);
    getCommand("acstatus").setExecutor(ac);
    getCommand("actoggle").setExecutor(ac);
    getCommand("acping").setExecutor(ac);
    getCommand("acspoofping").setExecutor(ac);
    getCommand("acraytol").setExecutor(ac);
    getCommand("acpps").setExecutor(ac);
    getCommand("achitstats").setExecutor(ac);
    getCommand("acresethitstats").setExecutor(ac);
    checkRegistry = new CheckRegistry();
    checkRegistry.registerCheck(new PacketSpoof(this));
    checkRegistry.registerCheck(new NoClip(this));
    checkRegistry.registerCheck(new WrongMove(this));
    checkRegistry.registerCheck(new FastPackets(this));
    PluginManager pluginManager = getServer().getPluginManager();
    // Uncomment if you want spam
    // pluginManager.registerEvents(testingMoveListener = new TestingMoveListener(this), this);
    pluginManager.registerEvents(new CheckListeners(this), this);
}
Also used : PluginManager(org.bukkit.plugin.PluginManager) NoClip(mc.dragons.anticheat.check.move.NoClip) CommandExecutor(org.bukkit.command.CommandExecutor) AntiCheatCommand(mc.dragons.anticheat.command.AntiCheatCommand) CheckListeners(mc.dragons.anticheat.event.CheckListeners) CheckRegistry(mc.dragons.anticheat.check.CheckRegistry) WrongMove(mc.dragons.anticheat.check.move.WrongMove) CombatRewinder(mc.dragons.anticheat.event.CombatRewinder) PacketSpoof(mc.dragons.anticheat.check.move.PacketSpoof) FastPackets(mc.dragons.anticheat.check.move.FastPackets)

Aggregations

CheckRegistry (mc.dragons.anticheat.check.CheckRegistry)1 FastPackets (mc.dragons.anticheat.check.move.FastPackets)1 NoClip (mc.dragons.anticheat.check.move.NoClip)1 PacketSpoof (mc.dragons.anticheat.check.move.PacketSpoof)1 WrongMove (mc.dragons.anticheat.check.move.WrongMove)1 AntiCheatCommand (mc.dragons.anticheat.command.AntiCheatCommand)1 CheckListeners (mc.dragons.anticheat.event.CheckListeners)1 CombatRewinder (mc.dragons.anticheat.event.CombatRewinder)1 CommandExecutor (org.bukkit.command.CommandExecutor)1 PluginManager (org.bukkit.plugin.PluginManager)1