Skip to content

GameLobbyManager API command

XiaoColorful edited this page Jun 9, 2026 · 2 revisions

English

游戏大厅管理器

IGameLobbyManager

/battleroyale api gameLobbyManager [...]

游戏大厅读取

IGameLobbyReadApi

发送大厅传送消息

/battleroyale api gameLobbyManager sendLobbyTeleportMessage [player] [isWinner]

  • player:实体选择器
  • 若实体选择器不为玩家,返回值为 0
  • isWinner:是否为获胜玩家消息类型
  • 返回值:1
获取游戏大厅是否创建

/battleroyale api gameLobbyManager isLobbyCreated

  • 返回值:当前是否已创建游戏大厅
获取游戏大厅是否启用无敌

/battleroyale api gameLobbyManager lobbyMuteki

获取游戏大厅是否启用治疗

/battleroyale api gameLobbyManager lobbyHeal

获取游戏大厅是否更改游戏模式

_/battleroyale api gameLobbyManager _

获取游戏大厅是否吐出背包

/battleroyale api gameLobbyManager teleportDropInventory

获取游戏大厅是否清空背包

/battleroyale api gameLobbyManager teleportClearInventory

测试是否处于游戏大厅内

/battleroyale api gameLobbyManager isInLobbyRange [xyz]

在指令 /execute in 维度测试:

  • xyz:指定的测试位置
  • 返回值:测试位置是否位于大厅范围内
测试游戏大厅无敌是否生效

/battleroyale api gameLobbyManager canMuteki [player]

  • player:实体选择器,指定测试生物
  • 若实体选择器不为生物,返回值为 0
  • 返回值:游戏大厅无敌是否对测试生物生效

大厅功能

ILobbyFuncApi

大厅治疗

/battleroyale api gameLobbyManager healPlayer [player]

  • player:实体选择器
  • 若实体选择器不为生物,返回值为 0
  • 返回值:1
大厅传送

/battleroyale api gameLobbyManager teleportToLobby [player]

  • player:实体选择器
  • 若实体选择器不为生物,返回值为 0
  • 返回值:是否成功传送
设置大厅

/battleroyale api gameLobbyManager setLobby [pos]

/battleroyale api gameLobbyManager setLobby [pos] [xyz]

/battleroyale api gameLobbyManager setLobby [pos] [xyz] [lobbyMuteki] [lobbyHeal] [lobbyChangeGamemode] [teleportDropInventory] [teleportClearInventory]

手动设置大厅

English

Game lobby manager

IGameLobbyManager

/battleroyale api IGameLobbyManager [...]

Game lobby read api

IGameLobbyReadApi

Send lobby teleport message

/battleroyale api gameLobbyManager sendLobbyTeleportMessage [player] [isWinner]

  • player: entity selector
  • If the entity selector is not a player, the return value is 0.
  • isWinner: whether it is a winner message type
  • return value: 1
Is lobby created

/battleroyale api gameLobbyManager isLobbyCreated

  • return value: whether the game lobby is currently created
Has lobby muteki

/battleroyale api gameLobbyManager lobbyMuteki

  • return value: whether the lobby has lobbyMuteki enabled
Has lobby heal

/battleroyale api gameLobbyManager lobbyHeal

  • return value: whether the lobby has lobbyHeal enabled
Has lobby change gamemode

_/battleroyale api gameLobbyManager _

Has lobby teleport drop inventory

/battleroyale api gameLobbyManager teleportDropInventory

Has teleport clear inventory

/battleroyale api gameLobbyManager teleportClearInventory

Is in lobby range

/battleroyale api gameLobbyManager isInLobbyRange [xyz]

Test in the /execute in dimension:

  • xyz: specified test position
  • return value: whether the test position is within the lobby range
Can muteki

/battleroyale api gameLobbyManager canMuteki [player]

  • player: entity selector, specifies the test living entity
  • If the entity selector is not a living entity, the return value is 0.
  • return value: whether game lobby invulnerability is effective for the test living entity

Lobby function api

ILobbyFuncApi

Lobby heal

/battleroyale api gameLobbyManager healPlayer [player]

  • player: entity selector
  • If the entity selector is not a living entity, the return value is 0.
  • return value: 1
Teleport to lobby

/battleroyale api gameLobbyManager teleportToLobby [player]

  • player: entity selector
  • If the entity selector is not a living entity, the return value is 0.
  • return value: whether the teleport was successful
Set lobby

/battleroyale api gameLobbyManager setLobby [pos]

/battleroyale api gameLobbyManager setLobby [pos] [xyz]

/battleroyale api gameLobbyManager setLobby [pos] [xyz] [lobbyMuteki] [lobbyHeal] [lobbyChangeGamemode] [teleportDropInventory] [teleportClearInventory]

Manually sets the lobby:

🌐 Language / 语言


Clone this wiki locally