mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
I made it pretty
This commit is contained in:
1 parent
1f53f4d1cd
commit
7ad0f63c34
2 files changed
+212
-232
No files matched your search
@@ -153,18 +153,17 @@ public class PlayerListener extends EventListener
|
||||
}
|
||||
|
||||
/* Interactions Check */
|
||||
Block block = event.getClickedBlock();
|
||||
Block block = event.getClickedBlock();
|
||||
if(checkManager.willCheck(player, CheckType.INTERACTION) && Utilities.isInteractable(block.getType()))
|
||||
{
|
||||
// save load and actually call the backend check here.
|
||||
if(backend.checkInteraction(player, block))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
log("failed interaction check",player,CheckType.INTERACTION);
|
||||
}
|
||||
System.out.println("checking interaction");
|
||||
// save load and actually call the backend check here.
|
||||
if(backend.checkInteraction(player, block))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
log("failed interaction check",player,CheckType.INTERACTION);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
|
||||
Reference in new issue
Block a user