Class Tags

java.lang.Object
me.devtec.amazingtags.utils.Tags

public class Tags extends Object
  • Constructor Details

    • Tags

      public Tags()
  • Method Details

    • isTag

      public static boolean isTag(String tag)
      If Tag exist
      Parameters:
      tag - - The name used in the config to access the tag data
      Returns:
      True if tag exists
    • exist

      public static boolean exist(String tag)
      If Tag exist
      Parameters:
      tag - - The name used in the config to access the tag data
      Returns:
      True if tag exists
    • getTagFormat

      public static String getTagFormat(String tag)
      Gets Tag format from Tags.yml
      Parameters:
      tag - - The name used in the config to access the tag data
      Returns:
      Returns tags format
    • getTagInfo

      public static String getTagInfo(String tag)
      Gets Tag info from Tags.yml if exists
      Parameters:
      tag - - The name used in the config to access the tag data
      Returns:
      Returns "" if tag info does not exists in Tags.yml
    • getTagName

      public static String getTagName(String tag)
      Gets Tag name from Tags.yml if exists. Is used instead of path name. Example: official name is superTag05, but you do not want player to see this, you use this.
      Parameters:
      tag - - The name used in the file to access the tag data
      Returns:
      Returns input parameter if is not used
    • getTagPermission

      public static String getTagPermission(String tag)
      Gets Tags permission.
      Parameters:
      tag - - The name used in the file to access the tag data
      Returns:
      Returns special tag permission from Tags.yml. If not used, returns default permission from Config.yml
    • canSee

      public static boolean canSee(org.bukkit.entity.Player player, String tag)
      Is used to check if player can see tag in GUI menu.
      Parameters:
      player - - Player
      tag - - The name used in the file to access the tag data
      Returns:
      True if player can see tag in menu
    • isEnabled

      public static boolean isEnabled(String tag)
      If tag is enabled
      Parameters:
      tag - - The name used in the file to access the tag data
      Returns:
      true/false - all tags enabled in default
    • hasPermission

      public static boolean hasPermission(org.bukkit.entity.Player player, String tag)
      If player can use or see tag in gui
      Parameters:
      player - Player
      tag - - The name used in the file to access the tag data
      Returns:
      a
    • getDefaultPermission

      public static String getDefaultPermission(String tag)
    • getTagItem

      public static org.bukkit.inventory.ItemStack getTagItem(org.bukkit.entity.Player player, String tag)
      Returns tag item. Server admin can edit items in Tags.yml or the default one in GUI.yml
      Parameters:
      player - - The player opening menu
      tag - - The name used in the file to access the tag data
      Returns:
      ItemStack
    • getPreviewItem

      public static org.bukkit.inventory.ItemStack getPreviewItem(org.bukkit.entity.Player player)
      Returns preview item used to inform player which tag he has selected
      Parameters:
      player - The player opening menu
      Returns:
      ItemStack