This anticheat will follow the Minecraft Packets Protocol 776 (26.2). It is largely inspired by another anticheat made for Minecraft 1.8.8 - NoHaserBenis.
Although we will convert packet classes into our own classes, we will be using PacketEvents 2.14.0 to listen to packets with Paper as our server platform on 26.2.
To build the project, you will need to have Maven installed. You can then run the following command in the project directory:
mvn clean packageThen move the generated jar file from the target directory to your Paper 26.2 server's plugins folder. Move the correct PacketEvents jar file to the plugins folder as well.