I'm making a java 2D online game. I use a tiledmap and I've been thinking about a way to prevent map hack.
My idea is to send the player's map file (compressed) which contains all cells and collision cells to the server and to compare it with the original one (on the server).
If they are equals, the player can connect.
This way, the player can't remove collisions cells on their map.
Is it a good idea ? Is there better alternatives ?