Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Nov 05:34

Breaking Changes

  • Many namespaces have been updated
    • Storage:

      • rx:global playerdb -> rx.playerdb:main
      • rx:io playerdb -> rx.playerdb:io
      • rx:temp playerdb -> rx.playerdb:temp
      • Example: rx.playerdb:io player.data
    • Scoreboards:

      • rx.pdb.hasEntry -> rx.pdb.has_entry
      • rx.pdb.LT -> rx.pdb.list_trigger
      • (..etc)
    • API, note the # indicating function tags:

      • rx.playerdb:api/get_self -> #rx.playerdb:api/v2/get/self

      • rx.playerdb:api/save -> #rx.playerdb:api/v2/save

      • #rx.playerdb:api/on_name_change -> #rx.playerdb:api/v2/on_name_change

      • Example:

         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!

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!

Fix

  • #api/v2/on_name_change can never infinite loop.

    • If you attempt to #api/v2/get/self, it will fail and output an error message which you can read via the rx.admin tag.
  • Nearly every error message has been updated, esp across the admin suite

  • Many of the admin things have been cleaned up (looking at you migrate_acc)

    • Note, admin tools 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 /reload

    • This should help catch some name changes ensuring this feature works more accurately!
  • Fixed upgrading issues (28d6262)

  • Admin cmd fixes (b9edbd4)

  • Made name change work again (7d627ba)

  • Make enumeration respect major minor patch properly (77c51de)

  • Minor typo in player tick (041827a)

  • Changed scoreboards to 16 char again (3810793)

  • Changed scoreboards to 1.17 compatible (16 char lim) (3ab8b9e)

Documentation