mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-07 04:00:46 +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)
|
- [Properties](#properties-1)
|
||||||
- [player.entity](#playerentity)
|
- [player.entity](#playerentity)
|
||||||
- [player.username](#playerusername)
|
- [player.username](#playerusername)
|
||||||
|
- [player.view](#playerview)
|
||||||
- [Events](#events-1)
|
- [Events](#events-1)
|
||||||
- ["connected"](#connected)
|
- ["connected"](#connected)
|
||||||
- ["spawned"](#spawned)
|
- ["spawned"](#spawned)
|
||||||
|
|
@ -41,6 +42,7 @@
|
||||||
- ["error" (error)](#error-error-1)
|
- ["error" (error)](#error-error-1)
|
||||||
- ["chat" (message)](#chat-message)
|
- ["chat" (message)](#chat-message)
|
||||||
- ["kicked" (kicker,reason)](#kicked-kickerreason)
|
- ["kicked" (kicker,reason)](#kicked-kickerreason)
|
||||||
|
- ["positionChanged"](#positionchanged)
|
||||||
- [Methods](#methods-1)
|
- [Methods](#methods-1)
|
||||||
- [player.login()](#playerlogin)
|
- [player.login()](#playerlogin)
|
||||||
- [player.ban(reason)](#playerbanreason)
|
- [player.ban(reason)](#playerbanreason)
|
||||||
|
|
@ -184,6 +186,10 @@ The entity of the player, of type `Flying-squid.Entity`
|
||||||
|
|
||||||
The username of the player
|
The username of the player
|
||||||
|
|
||||||
|
#### player.view
|
||||||
|
|
||||||
|
The view size of the player, for example 8 for 16x16
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
#### "connected"
|
#### "connected"
|
||||||
|
|
@ -210,6 +216,10 @@ Fires when the player says `message`.
|
||||||
|
|
||||||
`kicker` kick the player with `reason`
|
`kicker` kick the player with `reason`
|
||||||
|
|
||||||
|
#### "positionChanged"
|
||||||
|
|
||||||
|
fires when the position changed
|
||||||
|
|
||||||
### Methods
|
### Methods
|
||||||
|
|
||||||
#### player.login()
|
#### player.login()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue