更新3.3
This commit is contained in:
@@ -80,7 +80,7 @@ method in mod.server.component.commandCompServer.CommandCompServer
|
||||
| 参数名 | <div style="width: 4em">数据类型</div> | 说明 |
|
||||
| :--- | :--- | :--- |
|
||||
| cmdStr | str | 指令 |
|
||||
| playerId | str | 玩家id:可选,如果playerId不设置,则随机选择玩家 |
|
||||
| entityId | str | 实体Id:可选,如果不设置,则随机选择玩家 |
|
||||
| showOutput | bool | 是否输出到聊天窗口:可选,默认False,如果为True的话,指令正确时,才会和聊天框输入原生指令一样输出返回信息。只有当该参数为True的时候会触发OnCommandOutputServerEvent与OnCommandOutputClientEvent |
|
||||
|
||||
- 返回值
|
||||
@@ -89,6 +89,9 @@ method in mod.server.component.commandCompServer.CommandCompServer
|
||||
| :--- | :--- |
|
||||
| bool | 命令是否执行成功 |
|
||||
|
||||
- 备注
|
||||
- entityId 为非玩家时,即使showOutput为true,也不会输出到聊天窗口,且OnCommandOutputClientEvent 事件不会被触发
|
||||
|
||||
- 示例
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user