Class PlayerUUIDs

java.lang.Object
com.cryptomorin.xseries.profiles.PlayerUUIDs

@Internal public final class PlayerUUIDs extends Object
  • Field Details

    • IDENTITY_UUID

      public static final UUID IDENTITY_UUID
      Used as the default UUID for GameProfiles. Also used as a null-indicating value.
    • OFFLINE_TO_ONLINE

      public static final Map<UUID,UUID> OFFLINE_TO_ONLINE
      We can't use Guava's BiMap here since non-existing players are cached too.
    • ONLINE_TO_OFFLINE

      public static final Map<UUID,UUID> ONLINE_TO_OFFLINE
      We can't use Guava's BiMap here since non-existing players are cached too.
    • USERNAME_TO_ONLINE

      public static final Map<String,UUID> USERNAME_TO_ONLINE
  • Constructor Details

    • PlayerUUIDs

      public PlayerUUIDs()
  • Method Details

    • UUIDFromDashlessString

      public static UUID UUIDFromDashlessString(String dashlessUUIDString)
    • toUndashedUUID

      public static String toUndashedUUID(UUID id)
    • getOfflineUUID

      @Nonnull public static UUID getOfflineUUID(@Nonnull String username)
    • isOnlineMode

      public static boolean isOnlineMode()
    • getRealUUIDOfPlayer

      @Nullable public static UUID getRealUUIDOfPlayer(@Nonnull String username)
    • getRealUUIDOfPlayer

      @Nullable public static UUID getRealUUIDOfPlayer(@Nonnull String username, @Nonnull UUID uuid)
      Returns:
      null if a player with this username doesn't exist.