Skip to content

Releases: XiaoPangxie732/MojangAPI-in-Java

MojangAPI-in-Java v0.1.1.Final released!

24 Nov 13:58
Compare
Choose a tag to compare

A new release of MojangAPI-in-Java. 0.1.1 will be 0.1 and this version will be 0.1.1.
Changes:

  1. Completed security question answer flow implement.
  2. Optimized code.
  3. 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!

22 Nov 18:09
19689a6
Compare
Choose a tag to compare

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 to IllegalArgumentException
    • Throws ServiceException when service unavailable
  • Improved performance

New Features:

  1. Add SecurityQA class in Skin 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.
  2. Add getCapeURL method, to get the cape of a player

Known issues:

  1. May not be able to reset skin
  2. UUIDName.storeSkinImageToDesktop and UUIDName.storeCapeImageToDesktop may not work on Linux/macOS

MojangAPI-in-Java v0.0.5 released!

15 Jun 18:11
53fc4c2
Compare
Choose a tag to compare

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!

04 May 08:31
575c4a2
Compare
Choose a tag to compare

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!

10 Mar 13:42
2e6bdda
Compare
Choose a tag to compare

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

20 Feb 19:09
6a6873d
Compare
Choose a tag to compare

The new release of MojangAPI-in-Java

MojangAPI-in-Java development release

20 Feb 16:38
82ec96f
Compare
Choose a tag to compare

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