I'm currently programming an anticheat for the video game Minecraft.
There I have built in an automatic ban function that ban players who use prohibited client modifications.
However, if a player is kicked with the ban message and the ban is saved in an .yml file, he can still connect to the server.
I have already tried it with an ArrayList and asked when joining whether it is in this ArrayList. And if so, he is "blocked" and receives the Ban message.
The normal ban system, which only queries the .yml file when joining, works one-way.
But why doesn't that work with the anticheat?
PS: I use an ArrayList, because the .yml files are sometimes only saved when the server is reloaded / restarted and can therefore only be queried.
Excerpt from the ban function in the anticheat:
Stay healthy.
At line 6. If the "KICK_" has to go before the "BANNED" then it should work, if not please contact me.
No that must be there but thanks anyway.
I also managed it because I forgot to put the players in the ArrayList.