mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
McMMO compatibility fixed
This commit is contained in:
1 parent
33dadf6ad7
commit
ae2b90c583
2 files changed
+4
-3
No files matched your search
@@ -26,6 +26,7 @@ import net.h31ix.anticheat.manage.Distance;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
import org.bukkit.event.block.BlockDamageEvent;
|
||||
import org.bukkit.event.block.BlockPlaceEvent;
|
||||
@@ -36,7 +37,7 @@ public class BlockListener extends EventListener
|
||||
private final CheckManager checkManager = getCheckManager();
|
||||
private final Anticheat plugin = getPlugin();
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onBlockDamage(BlockDamageEvent event)
|
||||
{
|
||||
if(event.getInstaBreak())
|
||||
@@ -95,7 +96,7 @@ public class BlockListener extends EventListener
|
||||
noHack = false;
|
||||
}
|
||||
}
|
||||
if(checkManager.willCheck(player, CheckType.FAST_BREAK))
|
||||
if(checkManager.willCheck(player, CheckType.FAST_BREAK) && !backend.isInstantBreakExempt(player))
|
||||
{
|
||||
if(backend.checkFastBreak(player,block))
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ public class Backend
|
||||
{
|
||||
public static final int ENTERED_EXTITED_TIME = 20;
|
||||
public static final int EXIT_FLY_TIME = 40;
|
||||
public static final int INSTANT_BREAK_TIME = 20;
|
||||
public static final int INSTANT_BREAK_TIME = 100;
|
||||
public static final int JOIN_TIME = 40;
|
||||
public static final int DROPPED_ITEM_TIME = 2;
|
||||
public static final int DAMAGE_TIME = 50;
|
||||
|
||||
Reference in new issue
Block a user