Sorry to hijack your thread, however my question is related If i wanted to return the position of the player, would the code be? $x = $data["player"]->x; $y = $data["player"]->y; $z = $data["player"]->z; thanks
Player does not have the coordinates fields. You should use its entity object. A Block object and an Entity object are also subclasses of Position, so they must contain fields of x, y, z and level