For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-admin/classes/DedicatedServerUtils.md.

Class: DedicatedServerUtils experimental

Beta

包含仅在基岩版专用服务器中可用的 API

Contains apis that are only available when in Bedrock Dedicated Server.

Properties

allowList

readonly allowList: AllowList

Beta

Remarks

返回用于管理服务器允许列表的对象。

Returns an object that manages the server's allow list.


levelStorage

readonly levelStorage: LevelStorage

Beta

Remarks

返回用于管理关卡存储的对象。

Returns an object that manages the level's storage.

Methods

reloadCDNConfig()

reloadCDNConfig(): void

World Mutation Beta

Returns

void

Remarks

从磁盘重新加载 CDN 配置。

Reloads the cdn configuration from disk.

Throws

This function can throw errors.

EngineError


reloadPermissions()

reloadPermissions(): void

World Mutation Beta

Returns

void

Remarks

从磁盘重新加载服务器权限。

Reloads the permissions for the server from disk.

Throws

This function can throw errors.

EngineError


reloadScriptingConfig()

reloadScriptingConfig(): void

World Mutation Beta

Returns

void

Remarks

从磁盘重新加载服务器的脚本配置。

Reloads the script configuration for the server from disk.

Throws

This function can throw errors.

EngineError


stopServer()

stopServer(): void

World Mutation Beta

Returns

void

Remarks

关闭专用服务器。

Shuts down the dedicated server.