Package net.paulem.arcana.uuid
Class OfflineUUID
java.lang.Object
net.paulem.arcana.uuid.OfflineUUID
Represents an offline UUID for a player based on their name.
This is useful if you want datas linked with uuid to stay correct even if the server switches from online to offline mode.
-
Method Summary
Modifier and TypeMethodDescriptionget()Computes the offline-mode UUID derived from this instance's player name, the same way vanilla Minecraft derives UUIDs for offline-mode servers.static UUIDComputes the offline-mode UUID for the given player name.static UUIDget(org.bukkit.entity.Player player) Computes the offline-mode UUID for the given player, based on their name.static OfflineUUIDCreates anOfflineUUIDfor the given player name.static OfflineUUIDof(org.bukkit.entity.Player player) Creates anOfflineUUIDfor the given player, based on their name.
-
Method Details
-
of
Creates anOfflineUUIDfor the given player, based on their name.- Parameters:
player- the player to create the offline UUID for- Returns:
- an
OfflineUUIDinstance forplayer's name
-
of
Creates anOfflineUUIDfor the given player name.- Parameters:
name- the player name to create the offline UUID for- Returns:
- an
OfflineUUIDinstance forname
-
get
Computes the offline-mode UUID for the given player, based on their name.- Parameters:
player- the player to compute the offline UUID for- Returns:
- the offline UUID derived from
player's name
-
get
Computes the offline-mode UUID for the given player name.- Parameters:
name- the player name to compute the offline UUID for- Returns:
- the offline UUID derived from
name
-
get
Computes the offline-mode UUID derived from this instance's player name, the same way vanilla Minecraft derives UUIDs for offline-mode servers.- Returns:
- the offline UUID derived from the player name
-