Skip to content

Game command

XiaoColorful edited this page Jan 23, 2026 · 16 revisions

English

大逃杀指令

/battleroyale game [load/init/start/stop/lobby/toLobby/offset/selected/spectate] [xyz]

需要权限等级2

开始大逃杀游戏

/battleroyale game [load/init/start]

读取配置

/battleroyale game load

  • 保存当前世界维度,作为大逃杀世界维度
  • 根据大逃杀选用的配置id,读取配置文件
  • 备份当前世界规则
  • 允许大厅无敌生效
  • 保留或重置队伍信息
  • 将游戏管理器设置为已准备

初始化游戏

/battleroyale game init

若游戏管理器未准备,则执行一次 /battleroyale game load ,仍未准备则取消指令

  • 开始同步队伍信息
  • 若允许自动加入队伍,则强制给所有玩家分配队伍并加入游戏
  • 若允许自动加入队伍,新登录的玩家可自动加入游戏
  • 应用配置的世界规则
  • 将所有游戏玩家传送至大厅,可在游戏配置中禁用 teleportWhenInitGame
  • 预生成出生信息(传送点位、航线)
  • 根据当前是否已准备,将游戏管理器设置为已就绪

开始游戏

/battleroyale game start

若游戏管理器未就绪,则执行一次 /battleroyale game init ,仍未就绪则取消指令

  • 清除无队伍的游戏玩家
  • 若无足够队伍开始游戏则取消执行
  • 备份所有游戏玩家当前游戏模式
  • 为游戏玩家应用配置的游戏模式
  • 若无就绪的区域则取消执行
  • 若无出生信息则取消执行
  • 开始记录大逃杀游戏统计数据

结束游戏

/battleroyale game stop

强制结束游戏

/battleroyale game stop

  • 将所有游戏玩家传送回大厅
  • 取消新登录的玩家自动加入游戏
  • 清除或保留队伍信息

大厅

/battleroyale game [lobby/toLobby]

此命令不需要权限等级

大厅信息

/battleroyale game lobby

  • 查看大厅坐标
  • 查看大厅规模
  • 查看大厅是否启用无敌
  • 查看大厅是否启用治疗

传送至大厅

/battleroyale game toLobby

  • 游戏中执行该命令将被强制淘汰
  • 传送前清零下落距离

安全传送,文明掉落

传送不规范,玩家两行泪

全局偏移

/battleroyale game offset [xyz]

查看偏移

/battleroyale game offset

  • 查询全局偏移精确值

区域偏移

/battleroyale game offset [xyz]

  • 使区域的固定起止中心往三个方向分别偏移x、y、z
  • 使固定出生方式的点位往三个方向分别偏移x、y、z

出生方式的偏移会被出生配置生效的preZoneCenterOffset覆盖

查询选定游戏配置

/battleroyale game selected

查询全部选定游戏配置

/battleroyale game selected

观战游戏

/battleroyale game spectate

此命令不需要权限等级

切换旁观模式

/battleroyale game spectate

  • 当游戏进行时,队伍被淘汰时可切换为旁观模式
  • 当没有进行中的游戏时,切换为大逃杀默认游戏模式

可在游戏配置中更改观战规则

游戏信息

/battleroyale game gameId

查看游戏ID

/battleroyale game gameId

此命令不需要权限等级

  • 查询当前游戏管理器的游戏ID

English

/battleroyale game [load/init/start/stop/lobby/toLobby/offset/selected/spectate] [xyz]

Require permission level 2

Start BattleRoyale game

/battleroyale game [load/init/start]

Read configuration

/battleroyale game load

  • Save the current world level as the BattleRoyale world level
  • Read the configuration file according to the config id selected for the BattleRoyale
  • Back up the current world gamerules
  • Allow lobby muteki to take effect
  • Keep or reset team information
  • Set the game manager to be prepared

Initialize the game

/battleroyale game init

If the game manager is not prepared, execute /battleroyale game load once, and cancel the command if it is still not prepared

  • Start synchronizing team information
  • If allow auto join team, force all players to be assigned to a team and join the game
  • If allow auto join team, newly logged in players can automatically join the game
  • Apply the configured world gamerules
  • Teleport all game players to the lobby, this can be disabled in Game config with teleportWhenInitGame
  • Pre-generate spawn information (teleport point, plane route, etc.)
  • Set the game manager to ready based on whether it is currently ready

Start game

/battleroyale game start

If the game manager is not ready, execute /battleroyale game init once, and cancel the command if it is still not ready

  • Clear game players without a team
  • Cancel execution if there are not enough teams to start the game
  • Back up the current game mode for all game players
  • Apply the configured game mode for the game players
  • Cancel execution if there is no pending zone
  • Cancel execution if there is no spawn information
  • Start recording battle royale game statistics

End the game

/battleroyale game stop

Forcibly end the game

/battleroyale game stop

  • Teleport all game players back to the lobby
  • Cancel the automatic joining of newly logged in players
  • Clear or retain team information

Lobby

/battleroyale game [lobby/toLobby]

This command doesn't require permission level

Lobby information

/battleroyale game lobby

  • Check lobby coordinates
  • Check lobby size
  • Check whether invulnerable is enabled in the lobby
  • Check whether heal is enabled in the lobby

Teleport to lobby

/battleroyale game toLobby

  • Executing this command in the game will result in forced elimination
  • Reset fall distance before teleporting

Safe teleportation, civilized drop

Irregular teleportation, players shed tears

Global offset

/battleroyale game offset [xyz]

Check offset

/battleroyale game offset

  • Query the exact value of the global offset

Zone offset

/battleroyale game offset [xyz]

  • Shifts the fixed start and end center points of the zone along the x, y, and z axes.
  • Shifts the fixed spawn point along the x, y, and z axes.

The spawn offset will be overwritten by the effective preZoneCenterOffset in the spawn configuration

Query selected game config

/battleroyale game selected

Query all selected game config

/battleroyale game selected

  • Query the selected bot id and name
  • Query the selected gamerule id and name
  • Query the selected spawn id and name
  • Query the selected zone file name and zone quantity

Spectate game

/battleroyale game spectate

This command doesn't require permission level

Switch spectator mode

/battleroyale game spectate

  • When game is in progress, switch to spectator mode if game team is eliminated
  • When there's no game in progress, switch to default BattleRoyale gamemode

Spectator rules can be changed in the Game config

Game info

/battleroyale game gameId

Check game ID

/battleroyale game gameId

This command doesn't require permission level

  • Query Game Manager's current game ID

🌐 Language / 语言


Clone this wiki locally