authoritative-server
Installation
SKILL.md
Authoritative Server Pattern
Build multiplayer Decentraland scenes where a headless server controls game state, validates changes, and prevents cheating. The same codebase runs on both server and client, with the server having full authority.
For basic CRDT multiplayer (no server), see the multiplayer-sync skill instead.
Setup
1. Install the auth-server SDK branch (MANDATORY)
You must use the auth-server tag — the standard @dcl/sdk does NOT include authoritative server APIs (isServer, registerMessages, Storage, EnvVar, etc.):
npm install @dcl/sdk@auth-server
2. Configure scene.json
Your scene.json must include these properties: