Class: DedicatedServerUtils experimental
Beta
包含仅在基岩版专用服务器中可用的 API。
Contains apis that are only available when in Bedrock Dedicated Server.
Properties
allowList
readonlyallowList:AllowList
Beta
Remarks
返回用于管理服务器允许列表的对象。
Returns an object that manages the server's allow list.
levelStorage
readonlylevelStorage: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.
reloadPermissions()
reloadPermissions():
void
World Mutation Beta
Returns
void
Remarks
从磁盘重新加载服务器权限。
Reloads the permissions for the server from disk.
Throws
This function can throw errors.
reloadScriptingConfig()
reloadScriptingConfig():
void
World Mutation Beta
Returns
void
Remarks
从磁盘重新加载服务器的脚本配置。
Reloads the script configuration for the server from disk.
Throws
This function can throw errors.
stopServer()
stopServer():
void
World Mutation Beta
Returns
void
Remarks
关闭专用服务器。
Shuts down the dedicated server.
