mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Log instant break for instaBreak events AND instantBreak blocks
This commit is contained in:
1 parent
69aee38cb6
commit
c696f21fdd
1 file changed
+1
-1
@@ -41,7 +41,7 @@ public class BlockListener extends EventListener {
|
|||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onBlockDamage(BlockDamageEvent event) {
|
public void onBlockDamage(BlockDamageEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
if (event.getInstaBreak() && Utilities.isInstantBreak(event.getBlock().getType())) {
|
if (event.getInstaBreak() || Utilities.isInstantBreak(event.getBlock().getType())) {
|
||||||
backend.logInstantBreak(player);
|
backend.logInstantBreak(player);
|
||||||
}
|
}
|
||||||
if (checkManager.willCheck(player, CheckType.AUTOTOOL) && backend.justSwitchedTool(player)) {
|
if (checkManager.willCheck(player, CheckType.AUTOTOOL) && backend.justSwitchedTool(player)) {
|
||||||
|
|||||||
Reference in new issue
Block a user