-
-
Save weihao/5eecd59295da9128c44075c92c14fc0d to your computer and use it in GitHub Desktop.
Generate a offline uuid based on the minecraft player name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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