Skip to content

Commit 1287e33

Browse files
committed
docs: update onAttackEntity (#265)
1 parent c72dd7d commit 1287e33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/apis/EventAPI/PlayerEvents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Reminder: This event does not fire when the player returns to the Overworld from
133133
#### `"onAttackEntity"` - Player Attack Other Event
134134

135135
- Listener function prototype
136-
`function(player,entity,damage)`
136+
`function(player,entity)`
137137
- Parameters:
138138
- player : `Player`
139139
The player that attacked an entity.

docs/apis/EventAPI/PlayerEvents.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
#### `"onAttackEntity"` - 玩家攻击实体
136136

137137
- 监听函数原型
138-
`function(player,entity,damage)`
138+
`function(player,entity)`
139139
- 参数:
140140
- player : `Player`
141141
攻击实体的玩家对象

0 commit comments

Comments
 (0)