Skip to content

Instantly share code, notes, and snippets.

@games647
Created August 10, 2016 15:13
Show Gist options
  • Save games647/615846434bfc08c2164349eefdd35d33 to your computer and use it in GitHub Desktop.
Save games647/615846434bfc08c2164349eefdd35d33 to your computer and use it in GitHub Desktop.
Generate a offline uuid based on the minecraft player name
import com.google.common.base.Charsets;
import java.util.UUID;
public class OfflineUUID {
public static void main(String[] test) throws Exception {
UUID.nameUUIDFromBytes(("OfflinePlayer:" + "playerName").getBytes(Charsets.UTF_8));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment