Class Teleport
java.lang.Object
de.redstoneworld.redutilities.player.Teleport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidteleportSafely(org.bukkit.entity.Player player, org.bukkit.Location targetLocation) This method teleports the player to the specified location.
-
Constructor Details
-
Teleport
public Teleport()
-
-
Method Details
-
teleportSafely
public static void teleportSafely(org.bukkit.entity.Player player, org.bukkit.Location targetLocation) This method teleports the player to the specified location. The velocity and fall-damage is set to zero so that the player does not take over any fall damage due to the previous fall / fly. This is mainly relevant in the 'Survival-Mode'.- Parameters:
player- (Player) the target playertargetLocation- (Location) the target teleport-location
-