public static String playerIdToName(UUID uuid){
  long leastSigBits=uuid.getLeastSignificantBits();
  long mostSigBits=uuid.getMostSignificantBits();
  byte[] bytes=toArray(mostSigBits,leastSigBits);
  bytes=removeZeroesAtEnd(bytes);
  return new String(bytes,StandardCharsets.UTF_8);
}

public static String playerIdToName ( UUID uuid ) { long leastSigBits = uuid . getLeastSignificantBits ( ) ; long mostSigBits = uuid . getMostSignificantBits ( ) ; byte [ ] bytes = toArray ( mostSigBits , leastSigBits ) ; bytes = removeZeroesAtEnd ( bytes ) ; return new String ( bytes , StandardCharsets . UTF_8 ) ; }
converts an uuid back to the playername .
