Class OfflineUUID

java.lang.Object
net.paulem.arcana.uuid.OfflineUUID

public class OfflineUUID extends Object
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 Type
    Method
    Description
    get()
    Computes the offline-mode UUID derived from this instance's player name, the same way vanilla Minecraft derives UUIDs for offline-mode servers.
    static UUID
    get(String name)
    Computes the offline-mode UUID for the given player name.
    static UUID
    get(org.bukkit.entity.Player player)
    Computes the offline-mode UUID for the given player, based on their name.
    of(String name)
    Creates an OfflineUUID for the given player name.
    of(org.bukkit.entity.Player player)
    Creates an OfflineUUID for the given player, based on their name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • of

      public static OfflineUUID of(org.bukkit.entity.Player player)
      Creates an OfflineUUID for the given player, based on their name.
      Parameters:
      player - the player to create the offline UUID for
      Returns:
      an OfflineUUID instance for player's name
    • of

      public static OfflineUUID of(String name)
      Creates an OfflineUUID for the given player name.
      Parameters:
      name - the player name to create the offline UUID for
      Returns:
      an OfflineUUID instance for name
    • get

      public static UUID get(org.bukkit.entity.Player player)
      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

      public static UUID get(String name)
      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

      public UUID 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