update api.md

This commit is contained in:
Romain Beaumont 2015-10-08 22:56:56 +02:00
parent d3a20e4399
commit 717de0d409

View file

@ -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()