Huomautus
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoa.
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoa.
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.
Caution
This module is still in pre-release. It may change or it may be removed in future releases.
Changelog
Manifest Details
{
"module_name": "@minecraft/server-admin",
"version": "1.0.0-beta"
}
This is version 1.x.x of this module, which is the latest as of version 1.21.100-beta.24 of Minecraft.
Available Versions
1.0.0-beta
Classes
- AdminBeforeEvents
- AsyncPlayerJoinBeforeEvent
- AsyncPlayerJoinBeforeEventSignal
- SecretString
- ServerSecrets
- ServerVariables
Interfaces
Errors
Functions
transferPlayer
transferPlayer(player: minecraftserver.Player, options: TransferPlayerIpPortOptions | TransferPlayerNetherNetOptions): void
Transfer player to another server.
Parameters
player: @minecraft/server.Player
Player to transfer.
options: TransferPlayerIpPortOptions | TransferPlayerNetherNetOptions
Options for where to send the player.
Notes:
- This function can't be called in read-only mode.
- This function can throw errors.
Objects
beforeEvents
static read-only beforeEvents: AdminBeforeEvents;
Type: AdminBeforeEvents
secrets
static read-only secrets: ServerSecrets;
A globally available object that returns a list of dedicated-server configured secrets.
Type: ServerSecrets
variables
static read-only variables: ServerVariables;
A globally available object that returns a list of dedicated-server configured variables.
Type: ServerVariables