Class WCategory

java.lang.Object
com.olziedev.playerwarps.api.warp.WCategory

public abstract class WCategory extends Object
Represents a warp category that can provide basic category data for the warp.
  • Constructor Details

    • WCategory

      public WCategory()
  • Method Details

    • getName

      public abstract String getName()
      Returns:
      The name of the category from the category configuration file.
    • getDisplayName

      public abstract String getDisplayName()
      Returns:
      The displayname of the category from the category configuration file.
    • getWarps

      public abstract List<Warp> getWarps(boolean showLocked, CommandSender player)
      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

      public abstract boolean hasPermission(CommandSender sender)
      Parameters:
      sender - The sender to check the permission for.
      Returns:
      If they have the permission node set in the category configuration file.
    • getPermission

      public abstract String 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

      public abstract ItemStack 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.