What you should learn from game programming about security is to:
Never thrust the client!
I'm baffled that in games like Minecraft, the server sends all blocks to the client, instead of just the blocks that are visible. Or that you can give yourself any weapon and infinite ammo in DayZ. etc ...