moveWithin

public static boolean moveWithin(Player player, Location destination, PlayerTeleportEvent.TeleportCause cause)

Moves a player inside one world. For a participant, both ends must lie inside their match and they must be playing or waiting to start; other players move normally. For plugin mechanics, add-ons and test harnesses that reposition players.