Class UtilLocation

java.lang.Object
net.lewmc.essence.teleportation.UtilLocation

public class UtilLocation extends Object
Essence location utility.
  • Constructor Details

    • UtilLocation

      public UtilLocation(Essence plugin)
      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 world
      x - int - Location X
      z - 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 teleport
      waitTime - int - Wait time