292 Commits

Author SHA1 Message Date
Dawson 868815e429 Fixing Inventory (C) velocity falses 2023-03-15 14:25:15 -04:00
Dawson 91a3e5ca9b Optimized chunk grabbing, added velocity accounting for prediction 2023-03-15 14:20:02 -04:00
Dawson 53e9cb2189 Section 2023-03-14 20:59:54 -04:00
Dawson c8f279a9fc Fixed teleport lag issue with emulator 2023-03-14 14:13:23 -04:00
Dawson bbb7ade1c9 Added todo to fix teleport lag on emulator 2023-03-14 13:04:43 -04:00
Dawson ed2410757d Bug fixes and performance improvements
- Fixed NullPointerExceptions on the teleport functions of the Phase check. This is caused by a concurrency issue where I didn't set the Location object as a final constant and it would get updated to null by another thread.
- Added a Cache on the XMaterial#matchXMaterial(Material) method so it isn't running the logic repeatedly. This improved performance.
- Instead of using an object as a key in BlockUpdateHandler, we use an Integer array. This should theoretically improve performance by reducing the amount of hashing required. However, we shall see how this works in practice.
- Reduced the amounts of instructions needed to run in the getCollidingBlocks() method for the Emulator in APlayer by removing the use of a Stream and just replacing it with a for() loop.
2023-03-14 13:03:50 -04:00
Dawson 572716e76e Update JoinListener.java 2023-03-14 10:52:55 -04:00
Dawson dc089d022e Improving shit 2023-03-07 14:32:38 -05:00
Dawson 11b4a62924 Imrpoved shit 2023-03-06 14:37:21 -05:00
Dawson 591f782efd Restructuring Project 2023-03-06 09:32:22 -05:00
Dawson d61ae0e3d4 Merge branch 'main' of https://github.com/funkemunky/EnterpriseAnticheat 2023-03-02 11:21:01 -05:00
Dawson 8adceeea8d Adding pre-runtime cancellable packets 2023-03-02 11:20:59 -05:00
Dawson 4b29aec99a Update HealthSpoof.java 2023-03-01 20:06:46 -05:00
Dawson 3c53ba28b7 fixing inventory a bug 2023-02-28 14:31:20 -05:00
Dawson 75a0ccc257 Merge branch 'main' of https://github.com/funkemunky/EnterpriseAnticheat 2023-02-27 11:11:53 -05:00
Dawson da4f42e59b Fixing prediction 2023-02-27 11:11:28 -05:00
Dawson e21ef19459 Fixing Java 17 issues and adding exploision accounting 2023-02-27 09:56:22 -05:00
Dawson f95ec9e455 Fixed reverse boolean 2023-02-27 07:48:57 -05:00
Dawson 0170965e53 Added an Inventory C check 2023-02-26 13:32:44 -05:00
Dawson 5c937cbf1b Adding player version accounting to emulator 2023-02-22 08:37:40 -05:00
Dawson b2961a3c76 Update VelocityB.java 2023-02-21 17:29:44 -05:00
Dawson f85236afd3 Fixed Speed falsing on jump 2023-02-21 12:36:13 -05:00
Dawson ae9d205537 Added speed check and started on action system 2023-02-18 13:17:14 -05:00
Dawson ab00a71e84 Fixing false positives 2023-02-18 10:46:08 -05:00
Dawson 6713ff6dfa Update MovementHandler.java 2023-02-17 12:51:58 -05:00
Dawson 73653bd9a9 Update MovementHandler.java 2023-02-16 16:38:52 -05:00
Dawson 4e219f516c Cleaned up code and optimized iterations 2023-02-16 16:09:00 -05:00
Dawson c0a59fa91f Merge branch 'main' of https://github.com/funkemunky/EnterpriseAnticheat 2023-02-16 15:39:05 -05:00
Dawson 45482091dd Shit 2023-02-16 15:39:04 -05:00
Dawson 0a8252df9d Updated 2023-02-15 15:31:13 -05:00
Dawson b550030878 Undoing enhanced switch 2023-02-14 11:02:29 -05:00
Dawson 00c502c192 Adding neo 2023-02-13 10:21:28 -05:00
Dawson 3b6ddeaa3e Fixed false positives
- Fixed false positives in Fly (A)
- Fixed falses in Horizontal
- Added back integrity checking
2023-02-09 15:10:17 -05:00
Dawson e9bf178a1e Temp remove integrity check, updating loader instance 2023-01-04 09:58:18 -05:00
Dawson a04577b194 lots of changes
- Added inventory check type in API
- Added Inventory (A) detection
- Added Inventory (B) detection
- Improved the flag rate and accuracy of Aim check
- Added other bot check that flies around player to Killaura (Bot) to account for clients not doing a proper RayCast and opting to just turn on attack invisibles and mobs.
- Added comments to Killaura (Trace)
- Optimized Fly (A) detection and added comments
- Fixed false positive caused by incorrect acceleration prediction in Fly (A). I used the current onGround when that is actually never a factor in vertical acceleration, only the product of what the client moves to.
- Removed "optimization" in Fly (A) that basically just stopped prediction when client sends onGround and sets motionY to 0. Changed this behavior to it still do the acceleration subtraction 0.08 times 0.98 but run a collision check that will set the y to 0 if necessary; more closely replicates vanilla mechanics.
- Optimized Horizontal check and fixing field name motionX to more appropriate motion name.
- Optimized Velocity (B) by using current Horizontal optimizations and applying them to this check.
- Moved logs command in AnticheatCommand class to its own LogsCommand class. Added other kinds of logs commands like /kauri logs paste to send it to pastebin and /kauri logs web to view logs on the website.
- Fixed error on plugin shutdown caused by NPE. This was due to an order of operations issue with PlayerRegistry and PacketHandler
- Added wrapper for PacketPlayInWindowClick, PacketPlayInClientCommand.
- Added KLocation#getDirection() method as a shorthand to doing MathUtils.getDirection(KLocation field);
- Moved Helper#angularDistance to MathUtils#angularDistance
- Added CollisionBox#downcast() method as a shorthand method to not have to create a new List field every time I want to get the downcasted SimpleCollisionBox of any wrapped CollisionBox.
2022-11-29 10:00:44 -05:00
Dawson dfb04d50a2 Fixed NoFall (C) false positives, optimized chunk watching, fixed lag backs 2022-11-04 12:02:32 -04:00
Dawson 29dc536c7c Adding bulk chunk packet 2022-11-04 10:23:56 -04:00
Dawson b9246fc315 Adding ignored files 2022-11-04 09:59:08 -04:00
Dawson 7fa964f544 Merge branch 'main' of https://github.com/funkemunky/EnterpriseAnticheat 2022-11-04 09:56:48 -04:00
Dawson da5a061495 Update Processor_18.java 2022-11-04 09:56:44 -04:00
Dawson d230897b4f Update LoggerManager.java 2022-11-02 12:26:12 -04:00
Dawson cda3b39870 New checks and false positive fixes
- Completed Autoclicker (C), Oscillation check.
- Added Autoclicker (D). Checks for autoblocks
- Added NoFall (C). Fall distance check.
- Updated Phase setback to patch bypass.
- Added PacketPlayOutMapChunk wrapper.
- Tracking MapChunk updates to client, patches false positive from blocks not being updated on anticheat from plugins like FAWE.
- Now sniffs packets that aren't wrapped too when packet debugging player.
- Updated Fly (A) to now account for vertical collisions on predictions.
- Added experimental flag to CheckData.
- Removed lastFlagRun alert limiter.
- Increased amount of alerts that can be displayed in a second from 40 to 80.
2022-11-01 13:13:51 -04:00
Dawson bb23313ee4 Fixed horizontal false positive and updated logs menu 2022-10-28 10:54:48 -04:00
Dawson e8993989f9 Adding new logs 2022-10-25 11:15:43 -04:00
Dawson 9a727ea763 stuffs 2022-10-07 14:45:45 -04:00
Dawson 6941d0dcc6 New bug fixes and code features
- Fixed WPacketPlayOutMultiBlockChange bug where the x and z where incorrect. I didn't shift the value based on the chunk location like the vanilla packet does.
- Added BukkitRunnable which passes through the BukkitTask so tasks can be cancelled when using RunUtils, without having to use the Bukkit implementation instead.
- Fixed signs returning as collidable blocks in Materials, causing false positives.
- Fixed NullPointerException in the CHEST wrapper enum inside BlockData. Needed to use the BlockUtils#getRelative method instead, incase the APlayer object pass-through was null.
- Optimized Horizontal a bit more, reducing iterations.
2022-10-06 11:05:08 -04:00
Dawson 618510a2e0 Optimizations, new phase check, removing vertical for now 2022-10-02 09:39:56 -04:00
Dawson 99ac5ec942 Updating Phase check 2022-09-30 16:17:24 -04:00
Dawson 64887c73a2 Trying out new phase check 2022-09-30 15:36:07 -04:00
Dawson 3375db1558 Fixing NPE and entity collision fp 2022-09-30 10:37:49 -04:00