public static UUID getUUIDFromPlayer(final String playerName) {
    if (playerName == null) {
      return null;
    }

    final Map<String, UUID> uuids = getUUIDs(Arrays.asList(playerName));

    if (uuids == null) {
      return null;
    }

    if (uuids.isEmpty()) {
      return null;
    }

    // Search case insensitive
    for (final Entry<String, UUID> entry : uuids.entrySet()) {
      if (entry.getKey().equalsIgnoreCase(playerName)) {
        return entry.getValue();
      }
    }

    throw new NullPointerException("Could not UUID from player " + playerName + "!");
  }