Class WCategory
java.lang.Object
com.olziedev.playerwarps.api.warp.WCategory
Represents a warp category that can provide basic category data for the warp.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
abstract ItemStack
getIcon()
abstract String
getName()
abstract String
abstract int
abstract int
abstract double
getWarps
(boolean showLocked, CommandSender player) abstract boolean
hasPermission
(CommandSender sender) abstract boolean
isAll()
-
Constructor Details
-
WCategory
public WCategory()
-
-
Method Details
-
getName
- Returns:
- The name of the category from the category configuration file.
-
getDisplayName
- Returns:
- The displayname of the category from the category configuration file.
-
getWarps
- Parameters:
showLocked
- Add locked warps to the list.player
- The command sender that is requesting the list.- Returns:
- The list of the warps in this category.
-
hasPermission
- Parameters:
sender
- The sender to check the permission for.- Returns:
- If they have the permission node set in the category configuration file.
-
getPermission
- Returns:
- The permission required for this category.
-
getTeleportPrice
public abstract double getTeleportPrice()- Returns:
- The teleport price for this category that has been set in the category configuration file.
-
getPurgeTime
public abstract int getPurgeTime()- Returns:
- The purge time for this category that has been set in the category configuration file.
-
getRemoveDaysTime
public abstract int getRemoveDaysTime()- Returns:
- The remove days time for this category that has been set in the category configuration file.
-
getIcon
- Returns:
- The icon for this category that has been set in the category configuration file.
-
isAll
public abstract boolean isAll()- Returns:
- Weather or not this category is marked as the all category.
-