Klasse NickAPI

java.lang.Object
xyz.haoshoku.nick.api.NickAPI

public class NickAPI extends Object
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static void
    addBypass(org.bukkit.entity.Player bypassingPlayer, org.bukkit.entity.Player nickedPlayer)
    Allows player to bypass nicked players nick state.
    static void
    addBypassUUID(org.bukkit.entity.Player bypassingPlayer, UUID nickedUUID)
    The same as the addBypass method but with uuids
    static Set<UUID>
    getBypassedUUIDs(org.bukkit.entity.Player bypassingPlayer)
    Gets the uuids that has been added to the bypass set to allow players to see nicked players unnicked
    static String
    getName(org.bukkit.entity.Player player)
    Gets player name.
    static org.bukkit.entity.Player
    Returns the player object by giving a nicked name.
    static Map<UUID,String>
     
    static String
    getOriginalName(org.bukkit.entity.Player player)
    Gets player original name
    static String
    getOriginalSkinSignature(org.bukkit.entity.Player player)
    Gets player original skin signature
    static String
    getOriginalSkinValue(org.bukkit.entity.Player player)
    Gets player original skin value
    static String
    getSkinSignature(org.bukkit.entity.Player player)
    Gets player skin signature.
    static String
    getSkinValue(org.bukkit.entity.Player player)
    Gets player skin value.
    static UUID
    getUniqueId(org.bukkit.entity.Player player)
    Returns the player clientside uniqueId.
    static void
    hidePlayer(org.bukkit.entity.Player player)
    Hide player from ALL online players
    static void
    hidePlayer(org.bukkit.entity.Player player, org.bukkit.entity.Player hiddenTo)
    Hide player from other players
    static boolean
    isNicked(org.bukkit.entity.Player player)
    Check whether player is nicked
    static boolean
    Checks between online players whether the parameter name is already used by a nicked player
    static boolean
    isProfileNameChanged(org.bukkit.entity.Player player)
    Checks whether profile name has been changed
    static boolean
    isSkinChanged(org.bukkit.entity.Player player)
    Check whether players skin has been changed
    static boolean
    Checks between online players whether the parameter name is already used by an unnicked / nicked player
    static boolean
    Checks between online players whether the parameter name is already used by a nicked player
    static void
    refreshPlayer(org.bukkit.entity.Player player)
    This method is important.
    static void
    removeBypass(org.bukkit.entity.Player bypassingPlayer, org.bukkit.entity.Player nickedPlayer)
    Removes player to bypass nicked players nick state.
    static void
    removeBypassUUID(org.bukkit.entity.Player bypassingPlayer, UUID nickedUUID)
    The same as the removeBypass method but with uuids
    static void
    resetAll(org.bukkit.entity.Player player)
    Fully resets everything from NickAPI that has been applied to the player
    static void
    resetNick(org.bukkit.entity.Player player)
    Reset players nick
    static void
    resetProfileName(org.bukkit.entity.Player player)
    Resets players profile name
    static void
    resetSkin(org.bukkit.entity.Player player)
    Reset players skin
    static void
    resetUniqueId(org.bukkit.entity.Player player)
    Resets players uuid (the uuid that is gonna be changed clientside)
    static void
    setNick(org.bukkit.entity.Player player, String name)
    Changes the nick of a player
    static void
    setProfileName(org.bukkit.entity.Player player, String name)
    Writes the player name serverside
    static void
    setSkin(org.bukkit.entity.Player player, File file)
    Changes the player skin from a file You may need your own MineSkin API key in order to work with it
    static void
    setSkin(org.bukkit.entity.Player player, String minecraftName)
    Changes the player skin to the same of the premium minecraft name
    static void
    setSkin(org.bukkit.entity.Player player, String url, boolean urlUse)
    Changes the player skin from an url You may need your own MineSkin API key in order to work with it
    static void
    setSkin(org.bukkit.entity.Player player, String skinValue, String skinSignature)
    Changes the player skin from skin data
    static void
    setUniqueId(org.bukkit.entity.Player player, String minecraftName)
    Changes the uuid of the player clientsidely
    static void
    setUniqueId(org.bukkit.entity.Player player, UUID uuid)
    Changes the uuid of the player clientsidely
    static void
    showPlayer(org.bukkit.entity.Player player)
    Show player for ALL online players
    static void
    showPlayer(org.bukkit.entity.Player player, org.bukkit.entity.Player shownTo)
    Show player again to other players

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • NickAPI

      public NickAPI()
  • Methodendetails

    • setNick

      public static void setNick(org.bukkit.entity.Player player, String name)
      Changes the nick of a player
      Parameter:
      player - - Player who should be nicked
      name - Minecraft name the player should have
    • setProfileName

      public static void setProfileName(org.bukkit.entity.Player player, String name)
      Writes the player name serverside
      Parameter:
      player -
      name -
    • setSkin

      public static void setSkin(org.bukkit.entity.Player player, String minecraftName)
      Changes the player skin to the same of the premium minecraft name
      Parameter:
      player - Player whose skin is going to be changed
      minecraftName - The minecraft name
    • setSkin

      public static void setSkin(org.bukkit.entity.Player player, String skinValue, String skinSignature)
      Changes the player skin from skin data
      Parameter:
      player - Player whose skin is going to be changed
      skinValue - Textures: Value
      skinSignature - Textures: Signature
    • setSkin

      public static void setSkin(org.bukkit.entity.Player player, File file)
      Changes the player skin from a file You may need your own MineSkin API key in order to work with it
      Parameter:
      player -
      file -
    • setSkin

      public static void setSkin(org.bukkit.entity.Player player, String url, boolean urlUse)
      Changes the player skin from an url You may need your own MineSkin API key in order to work with it
      Parameter:
      player -
      url -
      urlUse -
    • setUniqueId

      public static void setUniqueId(org.bukkit.entity.Player player, UUID uuid)
      Changes the uuid of the player clientsidely
      Parameter:
      player - Player whose uuid should be changed
      uuid - the uuid
    • setUniqueId

      public static void setUniqueId(org.bukkit.entity.Player player, String minecraftName)
      Changes the uuid of the player clientsidely
      Parameter:
      player - Player whose uuid should be changed
      minecraftName - The minecraft name whose uuid should be used for player
    • isNicked

      public static boolean isNicked(org.bukkit.entity.Player player)
      Check whether player is nicked
      Parameter:
      player -
      Gibt zurück:
    • isSkinChanged

      public static boolean isSkinChanged(org.bukkit.entity.Player player)
      Check whether players skin has been changed
      Parameter:
      player -
      Gibt zurück:
    • isProfileNameChanged

      public static boolean isProfileNameChanged(org.bukkit.entity.Player player)
      Checks whether profile name has been changed
      Parameter:
      player -
      Gibt zurück:
    • resetAll

      public static void resetAll(org.bukkit.entity.Player player)
      Fully resets everything from NickAPI that has been applied to the player
      Parameter:
      player -
    • resetNick

      public static void resetNick(org.bukkit.entity.Player player)
      Reset players nick
      Parameter:
      player -
    • resetSkin

      public static void resetSkin(org.bukkit.entity.Player player)
      Reset players skin
      Parameter:
      player -
    • resetProfileName

      public static void resetProfileName(org.bukkit.entity.Player player)
      Resets players profile name
      Parameter:
      player -
    • resetUniqueId

      public static void resetUniqueId(org.bukkit.entity.Player player)
      Resets players uuid (the uuid that is gonna be changed clientside)
      Parameter:
      player -
    • getNickedPlayer

      public static org.bukkit.entity.Player getNickedPlayer(String name)
      Returns the player object by giving a nicked name. Returns a null if parameter name does not belong to a nicked player
      Parameter:
      name -
      Gibt zurück:
    • getOriginalName

      public static String getOriginalName(org.bukkit.entity.Player player)
      Gets player original name
      Parameter:
      player -
      Gibt zurück:
    • getOriginalSkinValue

      public static String getOriginalSkinValue(org.bukkit.entity.Player player)
      Gets player original skin value
      Parameter:
      player -
      Gibt zurück:
    • getOriginalSkinSignature

      public static String getOriginalSkinSignature(org.bukkit.entity.Player player)
      Gets player original skin signature
      Parameter:
      player -
      Gibt zurück:
    • getUniqueId

      public static UUID getUniqueId(org.bukkit.entity.Player player)
      Returns the player clientside uniqueId. If unnicked, it will return the original uuid, if nicked, it will return the nicked one.
      Parameter:
      player -
      Gibt zurück:
    • getName

      public static String getName(org.bukkit.entity.Player player)
      Gets player name. If nicked -> nicked name, if unnicked -> original name
      Parameter:
      player -
      Gibt zurück:
    • getSkinValue

      public static String getSkinValue(org.bukkit.entity.Player player)
      Gets player skin value. If changed -> changed value, otherwise original value
      Parameter:
      player -
      Gibt zurück:
    • getSkinSignature

      public static String getSkinSignature(org.bukkit.entity.Player player)
      Gets player skin signature. If changed -> changed signature, otherwise original signature
      Parameter:
      player -
      Gibt zurück:
    • nameExists

      public static boolean nameExists(String name)
      Checks between online players whether the parameter name is already used by an unnicked / nicked player
      Parameter:
      name -
      Gibt zurück:
    • nickExists

      public static boolean nickExists(String name)
      Checks between online players whether the parameter name is already used by a nicked player
      Parameter:
      name -
      Gibt zurück:
    • isNickedName

      public static boolean isNickedName(String name)
      Checks between online players whether the parameter name is already used by a nicked player
      Parameter:
      name -
      Gibt zurück:
    • hidePlayer

      public static void hidePlayer(org.bukkit.entity.Player player, org.bukkit.entity.Player hiddenTo)
      Hide player from other players
      Parameter:
      player - Player that should be hidden
      hiddenTo - Hidden to which player?
    • showPlayer

      public static void showPlayer(org.bukkit.entity.Player player, org.bukkit.entity.Player shownTo)
      Show player again to other players
      Parameter:
      player - Player that is going to be shown
      shownTo - To which players the player is going to be shown?
    • hidePlayer

      public static void hidePlayer(org.bukkit.entity.Player player)
      Hide player from ALL online players
      Parameter:
      player -
    • showPlayer

      public static void showPlayer(org.bukkit.entity.Player player)
      Show player for ALL online players
      Parameter:
      player -
    • addBypass

      public static void addBypass(org.bukkit.entity.Player bypassingPlayer, org.bukkit.entity.Player nickedPlayer)
      Allows player to bypass nicked players nick state. So he will see him unnicked
      Parameter:
      bypassingPlayer - The player who should see unnicked state of nicked player
      nickedPlayer - The nicked player
    • removeBypass

      public static void removeBypass(org.bukkit.entity.Player bypassingPlayer, org.bukkit.entity.Player nickedPlayer)
      Removes player to bypass nicked players nick state. So he will the nicked player nicked again
      Parameter:
      bypassingPlayer -
      nickedPlayer -
    • getBypassedUUIDs

      public static Set<UUID> getBypassedUUIDs(org.bukkit.entity.Player bypassingPlayer)
      Gets the uuids that has been added to the bypass set to allow players to see nicked players unnicked
      Parameter:
      bypassingPlayer -
      Gibt zurück:
    • addBypassUUID

      public static void addBypassUUID(org.bukkit.entity.Player bypassingPlayer, UUID nickedUUID)
      The same as the addBypass method but with uuids
      Parameter:
      bypassingPlayer -
      nickedUUID -
    • removeBypassUUID

      public static void removeBypassUUID(org.bukkit.entity.Player bypassingPlayer, UUID nickedUUID)
      The same as the removeBypass method but with uuids
      Parameter:
      bypassingPlayer -
      nickedUUID -
    • getNickedPlayers

      public static Map<UUID,String> getNickedPlayers()
    • refreshPlayer

      public static void refreshPlayer(org.bukkit.entity.Player player)
      This method is important. It is the "trigger signal" to nick a player. If you nick / unnick / change skin, call this method.
      Parameter:
      player -