Package net.lewmc.essence.utils
Class WarpUtil
java.lang.Object
net.lewmc.essence.utils.WarpUtil
The warp utility.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Creates a new warp.int
getWarpCount
(org.bukkit.entity.Player player) Returns the amount of warps that a user has set.
-
Constructor Details
-
WarpUtil
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
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.
-