Class WarpUtil

java.lang.Object
net.lewmc.essence.utils.WarpUtil

public class WarpUtil extends Object
The warp utility.
  • Constructor Details

    • WarpUtil

      public WarpUtil(Essence plugin)
      Constructor for the WarpUtil class.
      Parameters:
      plugin - Essence - Reference to the main class.
  • Method Details

    • getWarpCount

      public int getWarpCount(org.bukkit.entity.Player player)
      Returns the amount of warps that a user has set.
      Parameters:
      player - Player - The player who should be checked.
      Returns:
      int - The number of warps.
    • create

      public boolean create(String warpName, UUID playerUUID, org.bukkit.Location loc)
      Creates a new warp.
      Parameters:
      warpName - String - The name of the warp.
      playerUUID - UUID - Owner's UUID.
      loc - Location - The location of the warp.
      Returns:
      boolean - If the operation was successful.