The @minecraft/server-admin module.

Note: This module is not in the manifest.json so it cannot be accessed in-game unless manually added to the manifest.json.

Contains types related to administering a Bedrock Dedicated Server. These types allow for the configuration of variables and secrets in JSON files in the Bedrock Dedicated Server folder. These types cannot be used on Minecraft clients or within Minecraft Realms.

Manifest Details

{
"module_name": "@minecraft/server-admin",
"version": "1.0.0-beta"
}

Classes

AdminBeforeEvents
AsyncPlayerJoinBeforeEvent
AsyncPlayerJoinBeforeEventSignal
DisconnectedError
SecretString
ServerSecrets
ServerVariables

Interfaces

TransferPlayerIpPortOptions
TransferPlayerNetherNetOptions

Variables

beforeEvents
secrets
variables

Functions

transferPlayer