CA Update 1.5 - Save and Load advancements from JSON
Welcome to CrazyAdvancements v1.5, it's been painful work to put this together at some parts, but overall it was a great thing to develop.
Let's get to the changes!
- Added static
Advancement#fromJSON(String json) and static
Advancement#fromJSON(JsonElement json) which can generate an advancement from JSON (see the main post to learn how you have to set it up)
- Added
Advancement#getAdvancementJSON() returning the advancement element as JSON format (so you can save it or do whatever you want with it)
- You can deploy .json files under (SERVERDIRECTORY)/plugins/CrazyAdvancementsAPI/advancements/main which will add the advancements (same JSON as above) to the Main Advancement Manager
Bug fixes:
- Chat Message on advancement grant displayed depending on if toast was shown rather than if it should announce a message, now fixed!
- Minor Bugfixes