I'm working on something for multiplayer. I made it so when an ore is mined, secretInt += 5. If player two mines an ore, player one gets the += 5, and not the one that mined it. Player one will get it if they mine it also. I don't know if this is just because it's the LAN server, or if there's something else wrong. Could anyone help with this?
If I didn't explain this well enough, please tell me
well, you need to do this through packet handlers and store it server-side. also, incrementing should only be done server-side, so everytime you mine the client tells the server "heya, mined, pls increment the number".
You don't happen to know a good tutorial about packets, do you? I never messed with servers before xD