Skip to content

Commit 74a6b8a

Browse files
committed
Add the sender field to the event documentation
1 parent 369ac2f commit 74a6b8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/developers/events.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ _Called when the player closes their chat._
183183

184184
| Field | Description |
185185
| -------------------------- | -------------------------------------------------- |
186+
| `ApolloPlayer player` | The Apollo player that sent the packet. |
186187
| `long instantiationTimeMs` | The unix timestamp when the packet was created. |
187188
| `PlayerInfo playerInfo` | The player's general information. |
188189

@@ -197,6 +198,7 @@ _Called when the player opens their chat._
197198

198199
| Field | Description |
199200
| -------------------------- | -------------------------------------------------- |
201+
| `ApolloPlayer player` | The Apollo player that sent the packet. |
200202
| `long instantiationTimeMs` | The unix timestamp when the packet was created. |
201203
| `PlayerInfo playerInfo` | The player's general information. |
202204

@@ -211,6 +213,7 @@ _Called when the player attacks another player._
211213

212214
| Field | Description |
213215
| -------------------------- | -------------------------------------------------- |
216+
| `ApolloPlayer player` | The Apollo player that sent the packet. |
214217
| `long instantiationTimeMs` | The unix timestamp when the packet was created. |
215218
| `PlayerInfo targetInfo` | The target player general information. |
216219
| `PlayerInfo attackerInfo` | The attacker player general information. |
@@ -227,6 +230,7 @@ _Called when the player uses an item (1.16.1+)._
227230

228231
| Field | Description |
229232
| -------------------------- | -------------------------------------------------- |
233+
| `ApolloPlayer player` | The Apollo player that sent the packet. |
230234
| `long instantiationTimeMs` | The unix timestamp when the packet was created. |
231235
| `PlayerInfo playerInfo` | The player's general information. |
232236
| `boolean mainHand` | Whether the item was in the player's main hand. |

0 commit comments

Comments
 (0)