Plugin version 2, include extra data

This commit is contained in:
Shoghi Cervantes
2013-06-02 17:55:59 +02:00
parent c7a3fc4931
commit ec22034ad7
2 changed files with 18 additions and 3 deletions

View File

@ -426,6 +426,7 @@ class Entity extends Position{
$this->speedY = 0;
$this->speedZ = 0;
$update = false;
$this->server->api->handle("entity.move", $this);
$this->server->api->handle("entity.motion", $this);
}
@ -830,7 +831,7 @@ class Entity extends Position{
$this->x = 0;
$this->y = -10;
$this->z = 0;
$this->server->api->dhandle("entity.move", $this);
$this->server->api->trigger("entity.move", $this);
$this->x = $x;
$this->y = $y;
$this->z = $z;