So, how would you teleport a player to another player? I've defined $player1 as $sender->getPlayer(); PHP: $player2 = $args[0];if($player2 instanceof Player){$player1->teleport($player2); is this right? Or, do I have to grab player2's xyz? if so, what if $player2 was in a different level?
PHP: $player2 = $this->getServer()->getPlayer($args[0]);if($player2 !== null){ $pos = new Position($player2->getX(), $player2->getY(), $player2->getZ(), $player2->getLevel()); $player->teleport($pos);}