mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-15 03:14:56 -05:00
added session event to docs
This commit is contained in:
parent
4560c1948f
commit
069d95366c
1 changed files with 5 additions and 0 deletions
|
@ -66,6 +66,7 @@ Called when a client connects, but before any login has happened. Takes a
|
|||
|
||||
Called when a client is logged in against server. Takes a `Client` parameter.
|
||||
|
||||
|
||||
## mc.createClient(options)
|
||||
|
||||
Returns a `Client` instance and perform login.
|
||||
|
@ -146,6 +147,10 @@ and the packet metadata (name, state)
|
|||
Called when the protocol changes state. Takes the new state and old state as
|
||||
parameters.
|
||||
|
||||
### `session` event
|
||||
|
||||
Called when user authentication is resolved. Takes session data as parameter.
|
||||
|
||||
### per-packet events
|
||||
|
||||
Check out the [minecraft-data docs](https://prismarinejs.github.io/minecraft-data/?v=1.8&d=protocol) to know the event names and data field names.
|
||||
|
|
Loading…
Reference in a new issue