Skip to content

Releases: rx-modules/PlayerDB

v2.0.2

16 Jan 22:30
Compare
Choose a tag to compare

Removed global advancements and namespace

v2.0.1

14 Jan 17:57
Compare
Choose a tag to compare

A quick patch which I should have done a while back.
Removed the breaking yellow_shulker_box.json file plus removed the rx.playerdb:test directory causing errors.

v2.1.0 coming soon!

v2.0.0

17 Nov 05:34
Compare
Choose a tag to compare

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

v2.0.0-release-candidate

16 Nov 08:00
Compare
Choose a tag to compare
Pre-release

Fix

  • 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

v2.0.0-pre

15 Nov 21:41
Compare
Choose a tag to compare
v2.0.0-pre Pre-release
Pre-release

Fix

  • Minor typo in player tick (041827a)
  • Changed scoreboards to 16 char again (3810793)
  • Changed scoreboards to 1.17 compatible (16 char lim) (3ab8b9e)

Documentation

v1.2.0

11 Jun 22:02
Compare
Choose a tag to compare

Updated PlayerDB to use the latest Lantern Load spec

v1.1.1

26 Apr 02:23
Compare
Choose a tag to compare

Changelog

v1.1.1 Patch

  • Fixed a bug w/ impl/get_name that wouldn't work in other dimensions.

Fixes for #15 and #16

  • This involves an automatic upgrade of the UUID database. Take backups!
  • It also involves a misnamed objective, player renames will only be counted if they've logged in once after this upgrade unfortunately

Feature for #11 via PR #18

  • New admin command via admin/migrate_account
  • Set the account you want to migrate data by setting rx:temp playerdb.admin.migrate.UUID
  • Then run admin/migrate_account as the player you are migrating. This will take the old UUID's data to the new player
  • You will have to manually reset the old name via a reset <name>!

Also, fixed a bug with datapackager which added new lines to all of the code.

v1.0.3

09 Dec 20:23
Compare
Choose a tag to compare

Quick Patch Upgrade.
Mostly alters debug and bumps the version bc I forgot last time.

Snapshot is for 1.17, but it changes nothing like before.

v1.0.2

02 Dec 23:18
Compare
Choose a tag to compare

Fixed upgrading from v0.5 -> v1.0.x

v1.0.1

02 Dec 08:16
Compare
Choose a tag to compare

Minor patch update should be fully compatible with previous versions.

Fixed #10 .
Fixed the admin/list malfunctioning.
Changed admin/list to iterate through UUID data instead of PlayerDB.
Added an admin/debug function to aid in debugging.
Added extra version scoreboards for ease in use. (rx.pdb.major, rx.pdb.minor, rx.pdb.patch in the load scoreboard).

Snapshot version
: No changes except pack.mcmeta version bump 6 -> 7