Jump to content

[1.7.10] minecraft user account / list of premium accounts for my entity


Recommended Posts

Posted

in my mod im making a new entity.

I have the skin working so that if give it a custom name tag, it gets the skin for the given user name(name of the name tag)

so is there away i can download / get a list of user names and pick a random one then get the skin

 

i know that to get a skin the website is

 

http://skins.minecraft.net/MinecraftSkins/YOUR_USERNAME_HERE.png

 

so as i said above is there away to get a list and just replace the "YOUR_USERNAME_HERE" bit with the chosen user name

 

note that at the moment i am doing this in my EntityHelper class and just calling

EntityHelper.getRandomUsername();

on spawn

 

public static String getRandomUsername()
{
	String[] usernames = new String[] {"Notch", "Dinnerbone", "iprosyndicte", "SynHD", "AntVenom", "Soaryn", "Wyld", "Wolv21", "Direwolf20"};
	return usernames[new Random().nextInt(usernames.length)];
}

Posted

From wiki:

"As of June 25, 2014, (...) over 15 million copies on PC have been sold."

 

You do realise that EVEN if that would be possible (it ain't) the total weight of all nicks would be easily more than 0.5GB.

 

What you can is to generate array of Strings corresponding to all users that ever logged on particular (your) server.

 

Last option would be writing totally new program and send about 977 septilion (977 480 813 971 145 474 830 595 007) http-requests to mojang servers that would confirm if given user name exists. And that is considering small/big letters and numbers in nick with max 15 chars.

<joke alert>

width=410 height=296http://d3dsacqprgcsqh.cloudfront.net/photo/aOqggDN_460sa_v1.gif[/img]

 

And finally - maybe I don't understand what you wanna do, because your english is not yet mastered - please correct me and your post if I am wrong.

1.7.10 is no longer supported by forge, you are on your own.

Posted

From wiki:

"As of June 25, 2014, (...) over 15 million copies on PC have been sold."

 

You do realise that EVEN if that would be possible (it ain't) the total weight of all nicks would be easily more than 0.5GB.

 

What you can is to generate array of Strings corresponding to all users that ever logged on particular (your) server.

 

Last option would be writing totally new program and send about 977 septilion (977 480 813 971 145 474 830 595 007) http-requests to mojang servers that would confirm if given user name exists. And that is considering small/big letters and numbers in nick with max 15 chars.

width=410 height=296http://d3dsacqprgcsqh.cloudfront.net/photo/aOqggDN_460sa_v1.gif[/img]

 

thanks for the reply i just thought with it just being strings it would be a small text file or something, but now that you mention it it could just hard code some names as easter eggs and get players that have played on the server / sp world

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.