I believe (and I could be wrong) that it is counted as an array, for example you could do: $this->api->player->tppos($data["player"],$this->api->level->getDefault()->getSpawn());