CMD Selectors [@all, @player, @random]

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-15 16:29:11 +02:00
parent c6c82f7e55
commit d0d5c1bb79
3 changed files with 76 additions and 18 deletions

View file

@ -209,7 +209,7 @@ class Player{
"z" => $this->entity->z,
));
$this->data->set("spawn", array(
"level" => $this->entity->level->getName(),
"level" => $this->spawnPosition->level->getName(),
"x" => $this->spawnPosition->x,
"y" => $this->spawnPosition->y,
"z" => $this->spawnPosition->z,
@ -558,6 +558,10 @@ class Player{
if($pitch === false){
$pitch = $this->entity->yaw;
}
if($pos instanceof Position and $pos->level !== $this->level){
$this->level = $pos->level;
$this->chunksLoaded = array();
}
$this->lastCorrect = $pos;
$this->entity->fallY = false;
$this->entity->fallStart = false;