Releases: XiaoPangxie732/MojangAPI-in-Java
MojangAPI-in-Java v0.1.1.Final released!
A new release of MojangAPI-in-Java. 0.1.1 will be 0.1 and this version will be 0.1.1.
Changes:
- Completed security question answer flow implement.
- Optimized code.
- Improved Javadoc
Here is an example code of getting and answering the security questions:
ArrayList<Skin.SecurityQA.Question> questions = Skin.SecurityQA.getQuestionList(accessToken); //Get question list by player access token
ArrayList<Skin.SecurityQA.Answer> answers = new ArrayList<>(3);
try(Scanner sc = new Scanner(System.in)) { //Use scanner to detect input
questions.forEach(question -> {
System.out.println(question.getQuestionName());
answers.add(question.getAnswer().setAnswer(sc.next()));
});
}
Skin.SecurityQA.sendBackAnswers(accessToken, answers); // Send back the answers
MojangAPI-in-Java v0.1.1 released!
Because of I incorrectly posted v0.1 to GitHub Packages, so I am going to post v0.1.1 directly. I'm sorry for this:(
In fact, v0.1.1 is v0.1, and v0.1 is the same as v0.0.5(Because when I tried to publish v0.0.5 on GitHub Packages, I've been started to develop v0.1).
Changes from v0.1(v0.0.5):
- Bug fixes
- Couldn't change skin
- May throw exception incorrectly
- Improved JavaDoc
- Code optimization
- Updated Gson version(2.8.5 to 2.8.6)
- Add server status check before running the method
- Improved exception throw
- changed all
IllegalStateException
toIllegalArgumentException
- Throws
ServiceException
when service unavailable
- changed all
- Improved performance
New Features:
- Add
SecurityQA
class inSkin
to implement https://wiki.vg/Mojang_API#Security_question-answer_flow. Currently only implemented https://wiki.vg/Mojang_API#Check_if_security_questions_are_needed. - Add
getCapeURL
method, to get the cape of a player
Known issues:
- May not be able to reset skin
UUIDName.storeSkinImageToDesktop
andUUIDName.storeCapeImageToDesktop
may not work on Linux/macOS
MojangAPI-in-Java v0.0.5 released!
A new development release of MojangAPI-in-Java. It is the last development release too.
Code optimization:
- Better Javadoc.
- Better code.
New Features:
- Get player skin url and store image to the desktop. (need player's UUID)
- Change skin and reset skin. (require access token, can be got by using Auth.getAccessToken)
- Get blocked servers.
- Get sale statistics
For more details, view MojangAPI wiki.
MojangAPI-in-Java v0.0.4 released!
A new development release of MojangAPI-in-Java.
Code optimization:
- Changed getStatus method in Status.java
- More better Javadoc
New Features:
- Add use playername uuid to get name history.(The UUID can be get by using the UserName.UUIDAtNow method.)
Other changes:
- Changes in
Net
class:No longer use Apache HttpClient instead use JavaAPI(java.net) - Removed dependency Apache HttpComponents Client, now using JavaAPI
MojangAPI-in-Java v0.0.3 released!
A new development release of MojangAPI-in-Java
New Features:
-Get UUID of Username(s)(Playername(s))
Optimization the code.
More complete Javadoc.
MojangAPI-in-Java development release
The new release of MojangAPI-in-Java
MojangAPI-in-Java development release
No zip or tar.gz source code in version 0.0.1,because I deleted the source file.
If you want source code, please download mojang-api-0.0.1-sources.jar