Difference between revisions of "Minecraft.net"

From wiki.vg
Jump to navigation Jump to search
Line 10: Line 10:
 
https://login.minecraft.net/?user=<USERNAME>&password=<PASSWORD>&version=12</nowiki>
 
https://login.minecraft.net/?user=<USERNAME>&password=<PASSWORD>&version=12</nowiki>
 
The Minecraft launcher uses this to authenticate logins. If the username and password are valid for a premium account, returns "<[[wikipedia:Unix time|POSIX]] time>:<hash of password???>:<username with correct capitalization>:<freshly generated session id>:<UID (Presently unused)>". If username and password are invalid, returns "Bad login". If the username and password are correct, but the account isn't premium, returns "User not premium". If the given version number is less than 12, returns "Old version". The username is not case-sensitive, but naturally, the password is. Both GET and POST methods are supported.
 
The Minecraft launcher uses this to authenticate logins. If the username and password are valid for a premium account, returns "<[[wikipedia:Unix time|POSIX]] time>:<hash of password???>:<username with correct capitalization>:<freshly generated session id>:<UID (Presently unused)>". If username and password are invalid, returns "Bad login". If the username and password are correct, but the account isn't premium, returns "User not premium". If the given version number is less than 12, returns "Old version". The username is not case-sensitive, but naturally, the password is. Both GET and POST methods are supported.
 
  
 
  <nowiki>http://session.minecraft.net/game/joinserver.jsp?user=<USERNAME>&sessionId=<SESSION ID></nowiki>
 
  <nowiki>http://session.minecraft.net/game/joinserver.jsp?user=<USERNAME>&sessionId=<SESSION ID></nowiki>
 
This link seems to be called when a server with online-mode=true checks if it should allow a player to join the game. The session ID is generated by the launcher when you log in (you can also generate them with the "getversion.jsp" link above). This URL will return "OK" if the given session ID is the last one to have been generated for that username; otherwise it will return "Bad login".
 
This link seems to be called when a server with online-mode=true checks if it should allow a player to join the game. The session ID is generated by the launcher when you log in (you can also generate them with the "getversion.jsp" link above). This URL will return "OK" if the given session ID is the last one to have been generated for that username; otherwise it will return "Bad login".
 
  
 
  <nowiki>http://skins.minecraft.net/MinecraftSkins/<USERNAME>.png</nowiki>
 
  <nowiki>http://skins.minecraft.net/MinecraftSkins/<USERNAME>.png</nowiki>
Line 21: Line 19:
 
  <nowiki>http://skins.minecraft.net/MinecraftCloaks/<USERNAME>.png</nowiki>
 
  <nowiki>http://skins.minecraft.net/MinecraftCloaks/<USERNAME>.png</nowiki>
 
Returns the skin for a given username. Case-sensitive, returns an HTTP 404 error if the user does not have a cape.
 
Returns the skin for a given username. Case-sensitive, returns an HTTP 404 error if the user does not have a cape.
 
  
 
  <nowiki>http://www.minecraft.net/heartbeat.jsp?port=27015&users=0&max=0&name=blah&public=false&version=7&salt=1234123412341234</nowiki>
 
  <nowiki>http://www.minecraft.net/heartbeat.jsp?port=27015&users=0&max=0&name=blah&public=false&version=7&salt=1234123412341234</nowiki>
Line 28: Line 25:
 
  <nowiki>http://launch.minecraft.net/test.html</nowiki>
 
  <nowiki>http://launch.minecraft.net/test.html</nowiki>
 
A test page that Mojang asked people to use as they worked on a new launcher for Minecraft. Runs a few processes in the browser, then starts a new version of the launcher, which will be downloaded to /.minecraft/launcher as launcher.jar (only known difference between this launcher and the normal one - this launcher has the new logo)
 
A test page that Mojang asked people to use as they worked on a new launcher for Minecraft. Runs a few processes in the browser, then starts a new version of the launcher, which will be downloaded to /.minecraft/launcher as launcher.jar (only known difference between this launcher and the normal one - this launcher has the new logo)
 
  
 
  <nowiki>http://launch.minecraft.net/join.html?serverip=<SERVER IP></nowiki>
 
  <nowiki>http://launch.minecraft.net/join.html?serverip=<SERVER IP></nowiki>
 
This link gives a glimpse at a future feature to Minecraft. This page says that, in the future, it will be possible to have Minecraft open and connect to the server IP specified in the URL when you access this link. See it for yourself!
 
This link gives a glimpse at a future feature to Minecraft. This page says that, in the future, it will be possible to have Minecraft open and connect to the server IP specified in the URL when you access this link. See it for yourself!
 
  
 
  <nowiki>https://login.minecraft.net/benchmark.jsp</nowiki>
 
  <nowiki>https://login.minecraft.net/benchmark.jsp</nowiki>
Apparently some sort of joke page. It says it is triangulating a satellite and sending benchmark data back to Mojang or whatever, but a look at the source shows it is just an animation.
+
Apparently some sort of joke page. It says it is triangulating a satellite and sending benchmark data back to Mojang or whatever, but a look at the source shows it is just an animation. This page no longer functions.

Revision as of 12:22, 25 November 2012

This page serves to document the various access mechanisms availible to the Minecraft web services.

http://www.minecraft.net/haspaid.jsp?user=<USERNAME>

Used to check if an account is premium or not. Returns true if the username is a premium Minecraft account, returns false otherwise. This should be used with caution as it has been slated for removal by Mojang.

http://session.minecraft.net/game/getversion.jsp?user=<USERNAME>&password=<PASSWORD>&version=12
OR
http://login.minecraft.net/?user=<USERNAME>&password=<PASSWORD>&version=12
OR
https://login.minecraft.net/?user=<USERNAME>&password=<PASSWORD>&version=12

The Minecraft launcher uses this to authenticate logins. If the username and password are valid for a premium account, returns "<POSIX time>:<hash of password???>:<username with correct capitalization>:<freshly generated session id>:<UID (Presently unused)>". If username and password are invalid, returns "Bad login". If the username and password are correct, but the account isn't premium, returns "User not premium". If the given version number is less than 12, returns "Old version". The username is not case-sensitive, but naturally, the password is. Both GET and POST methods are supported.

http://session.minecraft.net/game/joinserver.jsp?user=<USERNAME>&sessionId=<SESSION ID>

This link seems to be called when a server with online-mode=true checks if it should allow a player to join the game. The session ID is generated by the launcher when you log in (you can also generate them with the "getversion.jsp" link above). This URL will return "OK" if the given session ID is the last one to have been generated for that username; otherwise it will return "Bad login".

http://skins.minecraft.net/MinecraftSkins/<USERNAME>.png

Returns the skin for a given username. Case-sensitive, returns an HTTP 404 error if the skin doesn't exist.

http://skins.minecraft.net/MinecraftCloaks/<USERNAME>.png

Returns the skin for a given username. Case-sensitive, returns an HTTP 404 error if the user does not have a cape.

http://www.minecraft.net/heartbeat.jsp?port=27015&users=0&max=0&name=blah&public=false&version=7&salt=1234123412341234

This is used to create the classic server list. It is documented properly on Classid Protocol

http://launch.minecraft.net/test.html

A test page that Mojang asked people to use as they worked on a new launcher for Minecraft. Runs a few processes in the browser, then starts a new version of the launcher, which will be downloaded to /.minecraft/launcher as launcher.jar (only known difference between this launcher and the normal one - this launcher has the new logo)

http://launch.minecraft.net/join.html?serverip=<SERVER IP>

This link gives a glimpse at a future feature to Minecraft. This page says that, in the future, it will be possible to have Minecraft open and connect to the server IP specified in the URL when you access this link. See it for yourself!

https://login.minecraft.net/benchmark.jsp

Apparently some sort of joke page. It says it is triangulating a satellite and sending benchmark data back to Mojang or whatever, but a look at the source shows it is just an animation. This page no longer functions.