Enum Class PlayerUtil

java.lang.Object
java.lang.Enum<PlayerUtil>
us.talabrek.ultimateskyblock.util.PlayerUtil
All Implemented Interfaces:
Serializable, Comparable<PlayerUtil>, Constable

public enum PlayerUtil extends Enum<PlayerUtil>
Wrappers for most player-related functionality.
  • Method Details

    • values

      public static PlayerUtil[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlayerUtil valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPlayerDisplayName

      public static String getPlayerDisplayName(String playerName)
    • getMetadata

      public static String getMetadata(org.bukkit.entity.Player player, String key, String defaultValue)
    • setMetadata

      public static void setMetadata(org.bukkit.entity.Player player, String key, String value)
    • loadConfig

      public static void loadConfig(PlayerDB playerDB, org.bukkit.configuration.file.FileConfiguration config)