Class UUIDUtil

java.lang.Object
ml.karmaconfigs.api.common.utils.UUIDUtil

public final class UUIDUtil extends Object
Karma UUID fetcher
  • Constructor Details

    • UUIDUtil

      public UUIDUtil()
  • Method Details

    • registerMinecraftClient

      public static void registerMinecraftClient(String name)
      Register a minecraft client into the karma UUID engine database API
      Parameters:
      name - the client name
    • fetchMinecraftUUID

      public static UUID fetchMinecraftUUID(String name)
      Fetch the UUID
      Parameters:
      name - the player name
      Returns:
      the name UUID
    • forceMinecraftOffline

      public static UUID forceMinecraftOffline(String name)
      Force online UUID fetch
      Parameters:
      name - the client name
      Returns:
      the name UUID
    • fetchNick

      public static String fetchNick(UUID uuid)
      Fetch the client nick
      Parameters:
      uuid - the UUID to search for
      Returns:
      the nick or null if not available in karma UUID engine database API
    • fromTrimmed

      @Nullable public static @Nullable UUID fromTrimmed(String id)
      Get a UUID from a trimmed UUID
      Parameters:
      id - the trimmed UUID
      Returns:
      the full UUID