Skip to content

Instantly share code, notes, and snippets.

@GaeaKat
Created February 5, 2015 01:05
Show Gist options
  • Save GaeaKat/4848385142275e0b4b84 to your computer and use it in GitHub Desktop.
Save GaeaKat/4848385142275e0b4b84 to your computer and use it in GitHub Desktop.
GameProfile profile = MinecraftServer.getServer().func_152358_ax().func_152655_a(username);
UUID uuid = null;
if (profile != null && profile.getId()!=null )
uuid = profile.getId();
else
uuid = EntityPlayer.func_146094_a(new GameProfile(null, username));
return uuid;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment