LiteLDev / LeviAntiCheat

Powerful anti-cheating for LeviLamina(Bedrock Dedicated Server)
20 stars 1 forks source link

[Feature]: Module to block bedrock protocol clients #5

Open Atomic69420 opened 7 months ago

Atomic69420 commented 7 months ago

Is your feature request related to a problem? Please describe.

None

Describe the solution you'd like

So basically it would be great to have a module to stop bedrock protocol clients from joining your server aka a anti bot module since bots can cause a lot of harm despite the modules like anti spam the anticheat currently has.

Describe alternatives you've considered

No response

Additional context

Although bots are very similar to normal players they seem to have different properties compared to normal players for example bots have no knockback but it seems bots will not get through to actually spawning within the game so it is recommended to stop bots within the login packet itself. The data within the login packet that can be used to describe a bot is they by default have a DeviceModel as PrismarineJS but this can be edited they also have a titleId as 2047319603 which is the nintendo switch titleId and can also be changed but it is not as easy as changing the DeviceModel located in the skin data also adding this as a flag can cause issues by kicking normal nintendo switch players so it isn't advised. But overall if you do have a robust way to detect a bedrock protocol client it would be helpful to server owners since bedrock protocol are the best way to use the exploits within bds and cause harm to a server that a normal player couldn't usually do. For reference on what bedrock protocol changes within the login packet you can look at https://github.com/PrismarineJS/bedrock-protocol/blob/master/src/handshake/login.js

Yushu2606 commented 7 months ago

it seems to break support for third-party clients and some projects like chatcraft