authoritative-server
Installation
SKILL.md
Authoritative Server Pattern
IMPORTANT: The authoritative server is feature in BETA. Always notify the user and ask them if they want to proceed in using this feature before adding it to the scene.
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
npm install @dcl/js-runtime@auth-server