Changelog¶
v2.0.0 (2021-11-11)¶
Breaking Changes¶
Must use Minecraft version 1.18+
Many namespaces have been updated
Storage:
rx:global playerdb->rx.playerdb:mainrx:io playerdb->rx.playerdb:iorx:temp playerdb->rx.playerdb:tempExample:
rx.playerdb:io player.data
Scoreboards:
rx.pdb.hasEntry->rx.pdb.has_entryrx.pdb.LT->rx.pdb.list_trigger(..etc)
API, note the
#indicating function tags:rx.playerdb:api/get_self->#rx.playerdb:api/v2/get/selfrx.playerdb:api/save->#rx.playerdb:api/v2/save#rx.playerdb:api/on_name_change->#rx.playerdb:api/v2/on_name_changeExample:
function #rx.playerdb:api/v2/get/self data modify storage rx.playerdb:io player.data.a set value 3b function #rx.playerdb:api/v2/save/self
Please pay close attention to the new API setup. This is vital to allow for packs to be bundlable so I took advantage of the 1.18 removed limits to rename some badly named objectives.
Features¶
PlayerDB can now be bundled! Checkout the usage section on the wiki to learn more!
Essentially, this allows you to ship your datapack with PlayerDB included allowing your users to only need to download your pack!
Fixes¶
#api/v2/on_name_changecan never infinite loop.If you attempt to
#api/v2/get/self, it will fail and output an error message which you can read via therx.admintag.
Nearly every error message has been updated, esp across the
adminsuiteMany of the
adminthings have been cleaned up (looking at youmigrate_acc)Note,
admintools are designed to be ran in chat and not via datapack commands.Running them via helper functions is fine, aslong as you keep track of newer admin updates since they are not versioned!
Login detection now works properly on server crashes. Also triggers on
/reloadThis should help catch some name changes ensuring this feature works more accurately!