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:
Dawson
2022-08-23 10:18:14 -04:00
parent bd50501640
commit 49391bfea9
42 changed files with 581 additions and 115 deletions
@@ -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;
}