Skip to content
KCKingdoms Connected Scripting APIScripting guides and API

Kingdom Come: Deliverance II multiplayer

Kingdoms Connected Scripting API

Script your own Kingdom Come: Deliverance II multiplayer server in JavaScript or TypeScript: spawn points, commands, NPCs, quests, shops, menus and whole game modes.

JavaScript and TypeScriptServer and client scriptingUp to 512 playersTypes on npm: @kingdomsconnected/typesDocker image with every release

API ENVIRONMENTS

Choose an environment

Running in ten minutes

Unpack a release, build the default gamemode, join your own server. Getting started walks you through it, then through your first resource.

The whole of Bohemia to script

Players, horses, dogs, NPCs, props, doors, the clock and the weather, quests, dialogue and shops, all from your own code.

Two halves, one resource

The server owns the rules and everything players share. The client half binds keys, draws HUDs and opens HTML menus in each player's game.

Hot reload

Type ensure in the server console and your resource reloads without a restart, pushing new client code to everyone connected.

Checked, not guessed

The API reference is generated from the runtime itself, and every sample in the guides is type-checked against the published declarations.

Built to host

Windows and Linux servers, an official Docker image and a Pterodactyl egg, and a listing in the in-game server browser.