Server authority is an important part of designing reliable and secure multiplayer games. In a multiplayer board game, the server should control important game rules and validate actions before changing the shared game state.
This guide explains server authority, client validation, common multiplayer cheating risks, and practical approaches for Unity multiplayer projects.
- What Is Server Authority?
- Why Server Authority Matters
- Client vs Server Responsibilities
- Authoritative Game State
- Validating Player Actions
- Common Multiplayer Cheating Risks
- Server-Side Validation
- Dice Roll Example
- Turn Validation
- Preventing Invalid Movement
- Protecting Game Economy Data
- Client-Side vs Server-Side Logic
- Handling Suspicious Requests
- Security Considerations
- Testing Server Authority
- Server Authority Checklist
- Related Documentation
- Conclusion
Server authority means that the server is responsible for controlling important multiplayer game rules and the official game state.
Instead of allowing each client to decide whether an action is valid, the client sends a request to the server.
The server then:
- Receives the request.
- Identifies the player.
- Checks the current game state.
- Validates the requested action.
- Applies the action if it is valid.
- Updates the shared game state.
- Sends the resulting state to connected players.
A simplified flow looks like this:
Player
|
v
Client Request
|
v
Game Server
|
v
Validate Action
|
+---- Invalid ----> Reject
|
+---- Valid ------> Update Game State
|
v
Other Players