Klasse NickAPI
java.lang.Object
xyz.haoshoku.nick.api.NickAPI
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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 uuidsgetBypassedUUIDs
(org.bukkit.entity.Player bypassingPlayer) Gets the uuids that has been added to the bypass set to allow players to see nicked players unnickedstatic String
getName
(org.bukkit.entity.Player player) Gets player name.static org.bukkit.entity.Player
getNickedPlayer
(String name) Returns the player object by giving a nicked name.static String
getOriginalName
(org.bukkit.entity.Player player) Gets player original namestatic String
getOriginalSkinSignature
(org.bukkit.entity.Player player) Gets player original skin signaturestatic String
getOriginalSkinValue
(org.bukkit.entity.Player player) Gets player original skin valuestatic 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 playersstatic void
hidePlayer
(org.bukkit.entity.Player player, org.bukkit.entity.Player hiddenTo) Hide player from other playersstatic boolean
isNicked
(org.bukkit.entity.Player player) Check whether player is nickedstatic boolean
isNickedName
(String name) Checks between online players whether the parameter name is already used by a nicked playerstatic boolean
isProfileNameChanged
(org.bukkit.entity.Player player) Checks whether profile name has been changedstatic boolean
isSkinChanged
(org.bukkit.entity.Player player) Check whether players skin has been changedstatic boolean
nameExists
(String name) Checks between online players whether the parameter name is already used by an unnicked / nicked playerstatic boolean
nickExists
(String name) Checks between online players whether the parameter name is already used by a nicked playerstatic 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 uuidsstatic void
resetAll
(org.bukkit.entity.Player player) Fully resets everything from NickAPI that has been applied to the playerstatic void
resetNick
(org.bukkit.entity.Player player) Reset players nickstatic void
resetProfileName
(org.bukkit.entity.Player player) Resets players profile namestatic void
resetSkin
(org.bukkit.entity.Player player) Reset players skinstatic void
resetUniqueId
(org.bukkit.entity.Player player) Resets players uuid (the uuid that is gonna be changed clientside)static void
Changes the nick of a playerstatic void
setProfileName
(org.bukkit.entity.Player player, String name) Writes the player name serversidestatic void
Changes the player skin from a file You may need your own MineSkin API key in order to work with itstatic void
Changes the player skin to the same of the premium minecraft namestatic void
Changes the player skin from an url You may need your own MineSkin API key in order to work with itstatic void
Changes the player skin from skin datastatic void
setUniqueId
(org.bukkit.entity.Player player, String minecraftName) Changes the uuid of the player clientsidelystatic void
setUniqueId
(org.bukkit.entity.Player player, UUID uuid) Changes the uuid of the player clientsidelystatic void
showPlayer
(org.bukkit.entity.Player player) Show player for ALL online playersstatic void
showPlayer
(org.bukkit.entity.Player player, org.bukkit.entity.Player shownTo) Show player again to other players
-
Konstruktordetails
-
NickAPI
public NickAPI()
-
-
Methodendetails
-
setNick
Changes the nick of a player- Parameter:
player
- - Player who should be nickedname
- Minecraft name the player should have
-
setProfileName
Writes the player name serverside- Parameter:
player
-name
-
-
setSkin
Changes the player skin to the same of the premium minecraft name- Parameter:
player
- Player whose skin is going to be changedminecraftName
- The minecraft name
-
setSkin
-
setSkin
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
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
Changes the uuid of the player clientsidely- Parameter:
player
- Player whose uuid should be changeduuid
- the uuid
-
setUniqueId
Changes the uuid of the player clientsidely- Parameter:
player
- Player whose uuid should be changedminecraftName
- 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
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
Gets player original name- Parameter:
player
-- Gibt zurück:
-
getOriginalSkinValue
Gets player original skin value- Parameter:
player
-- Gibt zurück:
-
getOriginalSkinSignature
Gets player original skin signature- Parameter:
player
-- Gibt zurück:
-
getUniqueId
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
Gets player name. If nicked -> nicked name, if unnicked -> original name- Parameter:
player
-- Gibt zurück:
-
getSkinValue
Gets player skin value. If changed -> changed value, otherwise original value- Parameter:
player
-- Gibt zurück:
-
getSkinSignature
Gets player skin signature. If changed -> changed signature, otherwise original signature- Parameter:
player
-- Gibt zurück:
-
nameExists
Checks between online players whether the parameter name is already used by an unnicked / nicked player- Parameter:
name
-- Gibt zurück:
-
nickExists
Checks between online players whether the parameter name is already used by a nicked player- Parameter:
name
-- Gibt zurück:
-
isNickedName
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 hiddenhiddenTo
- 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 shownshownTo
- 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 playernickedPlayer
- 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
-
addBypassUUID
The same as the addBypass method but with uuids- Parameter:
bypassingPlayer
-nickedUUID
-
-
removeBypassUUID
The same as the removeBypass method but with uuids- Parameter:
bypassingPlayer
-nickedUUID
-
-
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
-
-