mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 06:21:08 +00:00
update api.md
This commit is contained in:
parent
d3a20e4399
commit
717de0d409
1 changed files with 10 additions and 0 deletions
10
doc/api.md
10
doc/api.md
|
|
@ -34,6 +34,7 @@
|
|||
- [Properties](#properties-1)
|
||||
- [player.entity](#playerentity)
|
||||
- [player.username](#playerusername)
|
||||
- [player.view](#playerview)
|
||||
- [Events](#events-1)
|
||||
- ["connected"](#connected)
|
||||
- ["spawned"](#spawned)
|
||||
|
|
@ -41,6 +42,7 @@
|
|||
- ["error" (error)](#error-error-1)
|
||||
- ["chat" (message)](#chat-message)
|
||||
- ["kicked" (kicker,reason)](#kicked-kickerreason)
|
||||
- ["positionChanged"](#positionchanged)
|
||||
- [Methods](#methods-1)
|
||||
- [player.login()](#playerlogin)
|
||||
- [player.ban(reason)](#playerbanreason)
|
||||
|
|
@ -184,6 +186,10 @@ The entity of the player, of type `Flying-squid.Entity`
|
|||
|
||||
The username of the player
|
||||
|
||||
#### player.view
|
||||
|
||||
The view size of the player, for example 8 for 16x16
|
||||
|
||||
### Events
|
||||
|
||||
#### "connected"
|
||||
|
|
@ -210,6 +216,10 @@ Fires when the player says `message`.
|
|||
|
||||
`kicker` kick the player with `reason`
|
||||
|
||||
#### "positionChanged"
|
||||
|
||||
fires when the position changed
|
||||
|
||||
### Methods
|
||||
|
||||
#### player.login()
|
||||
|
|
|
|||
Loading…
Reference in a new issue