Package net.lewmc.essence.teleportation
Class UtilLocation
java.lang.Object
net.lewmc.essence.teleportation.UtilLocation
Essence location utility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGetGroundY(org.bukkit.World world, int x, int z) Gets the ground Y coordinate.voidsendBack(org.bukkit.entity.Player player, int waitTime) Teleports a player back to their last known location.voidUpdateLastLocation(org.bukkit.entity.Player p) Updates the player's last location.
-
Constructor Details
-
UtilLocation
Constructor for the LocationUtil class.- Parameters:
plugin- Reference to the main Essence class.
-
-
Method Details
-
UpdateLastLocation
public void UpdateLastLocation(org.bukkit.entity.Player p) Updates the player's last location.- Parameters:
p- Player - The player
-
GetGroundY
public int GetGroundY(org.bukkit.World world, int x, int z) Gets the ground Y coordinate.- Parameters:
world- World - The worldx- int - Location Xz- int - Location Z- Returns:
- int - The ground Y
-
sendBack
public void sendBack(org.bukkit.entity.Player player, int waitTime) Teleports a player back to their last known location.- Parameters:
player- Player - The player to teleportwaitTime- int - Wait time
-