mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-05-31 14:01:54 +00:00
Adding API, new checks, false positive fixes
- New Order (Place) and Order (Use) check - New Autoclicker (A) and Autoclicker (B) check. - Event system for checks has changed to use lambdas instead of reflection (IE WAction and TimedWAction) - Added configurable commands for punishments - Added punishments - Added title command (wont show in help menu) - Added new AnticheatAPI project - Implemented flag, punish, and cancel listeners for API uses.
This commit is contained in:
@@ -275,6 +275,8 @@ public class PacketHandler {
|
||||
IntVector pos = packet.getBlockPos();
|
||||
ItemStack stack = packet.getItemStack();
|
||||
|
||||
player.getInfo().getLastBlockPlace().reset();
|
||||
|
||||
// Used item
|
||||
if(pos.getX() == -1 && (pos.getY() == 255 | pos.getY() == -1) && pos.getZ() == -1
|
||||
&& stack != null
|
||||
@@ -288,6 +290,7 @@ public class PacketHandler {
|
||||
case BLOCK_DIG: {
|
||||
WPacketPlayInBlockDig packet = (WPacketPlayInBlockDig) packetObject;
|
||||
|
||||
player.getInfo().getLastBlockDig().reset();
|
||||
player.getBlockUpdateHandler().onDig(packet);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user