Skip to content

Commit f5c1e6b

Browse files
minor fix doc
1 parent dfffb51 commit f5c1e6b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

docs/plugin-dev/api/玩家信息.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ for player in self.game_ctrl.players:
111111
### 显示聊天栏信息
112112

113113
```python
114-
player.show(message)
114+
player.show(text)
115115
```
116116

117117
对该玩家显示聊天栏消息。
@@ -200,9 +200,8 @@ player.setActionBar(text)
200200

201201
- 示例:
202202
```python
203-
player.setTitle(
204-
"Hello World",
205-
"欢迎使用 ToolDelta"
203+
player.setActionBar(
204+
"Hello World"
206205
)
207206
```
208207

0 commit comments

Comments
 (0)