Skip to content

3.0.0

Choose a tag to compare

@dmccoystephenson dmccoystephenson released this 28 Sep 03:51
ab2896a

3.0.0

For a server running v2.1.0 this is a drop-in upgrade. Your database and existing config carry over unchanged, and several command crashes and a shutdown issue with the shared H2 database are fixed. The plugin now sends anonymous usage reports by default: on startup and each time /currency or /coinpurse is used, it sends the plugin name, version and command name. It logs a notice about this on every startup, and you can turn it off. Support for migrating Currencies 1 data has been removed.

Changes

Usage reporting

  • The plugin reports a small usage event on startup and each time /currency or /coinpurse is used. Only the plugin name, version and command name are sent, never anything about players, command arguments or the server. Sending happens off the main thread and is dropped silently if the trace server can't be reached (#214).
  • A startup log line says whether reporting is on and how to turn it off. You can turn it off per plugin with usage-reporting.enabled: false, for every participating plugin with enabled: false in plugins/trace/config.yml (created on first start), or with the environment variables TRACE_USAGE_REPORTING=off or DO_NOT_TRACK=1 (#217).
  • plugins/trace/config.yml also accepts an optional tags: block that is added to every event. For example, ci: "true" on a test server keeps its events out of real-installation figures (#228).

Commands

  • /currency mint now rejects an amount of zero or less. Before, such an amount credited power back and lowered the minted total (#229).
  • /currency info no longer fails on Paper 1.20.5 and later. When the item's details can't be read, it shows the plain item name (#230).
  • /currency retire and /currency info now accept quoted multi-word currency names (#212).
  • An empty or unbalanced quote ("" or ") in a command argument no longer causes "An internal error occurred" (#222).
  • Creating or renaming a currency now correctly checks whether the new name is already taken (#197).
  • The /currency usage message now lists the rename subcommand (#203).

Stability

  • The plugin now closes its database connection pool on shutdown and after a failed startup. This stops the H2 database it shares with Medieval Factions from being left unflushed with a *.trace.db file beside it (#220, #221).
  • For embedded H2 URLs that don't use AUTO_SERVER=TRUE, DB_CLOSE_ON_EXIT=FALSE is added unless you've already set it. The default URL is left unchanged (#220, #221).
  • Ponder is now bundled in the plugin instead of being loaded from Medieval Factions, which fixes class-loading failures (#209).

Removed

  • The Currencies 1 data migration has been removed (#198).

Upgrade notes

  • If your server still has Currencies 1.x data, upgrade to v2.1.0 first and let its migration finish before installing this release. This release will not detect or migrate Currencies 1 files.
  • Usage reporting is on by default, including on upgraded servers. The usage-reporting block is added to your config.yml on first start. If you don't want reporting, set usage-reporting.enabled: false there or use one of the server-wide switches above.

Version

v2.1.0 → 3.0.0 — MAJOR. Mechanical floor from comparing the two jars: MINOR.
Judgment: The mechanical floor of minor comes from the new usage-reporting config keys and the new classes. #198 removes the Currencies 1 migration, a breaking change the jar comparison only flags as INFO class removals. A server that still has Currencies 1.x data and upgrades straight to this release will no longer get its data backed up and migrated. For servers already on v2.1.0, nothing on disk, no config key's meaning and no permission changes incompatibly. The /currency mint rejection and the argument unquoting are bug fixes. The truncated files are all under src/test and cannot change runtime behaviour.

  • minor: default config key added: usage-reporting.enabled
  • minor: default config key added: usage-reporting.endpoint
  • minor: default config key added: usage-reporting.key
  • minor: default config value changed: version 2.1.0-SNAPSHOT → 3.0.0-SNAPSHOT-8-8-2026
  • minor: storage path changed: src/main/kotlin/com/dansplugins/currencies/Currencies.kt
Java API changes (informational — nothing depends on this plugin)
  • public class removed: com.dansplugins.currencies.legacy.CurrenciesLegacyDataMigrator
  • public class removed: com.dansplugins.currencies.legacy.LegacyCoinpurse
  • public class removed: com.dansplugins.currencies.legacy.LegacyCurrency
  • public class added: com.dansplugins.currencies.Currencies$Companion
  • public class added: com.dansplugins.currencies.command.ArgsKt
  • public class added: com.dansplugins.currencies.trace.TraceClient
  • public class added: com.dansplugins.currencies.trace.TraceClient$Builder
  • public class added: com.dansplugins.currencies.trace.TraceReportingCommand
  • public class added: com.dansplugins.currencies.trace.UsageReportingConfig
  • public class added: com.dansplugins.currencies.trace.UsageReportingConfig$Companion
  • com.dansplugins.currencies.Currencies: added public static final com.dansplugins.currencies.Currencies$Companion Companion;
  • com.dansplugins.currencies.Currencies: added public static final com.dansplugins.factionsystem.shadow.kotlin.text.Regex access$getAUTO_SERVER_ON$cp();
  • com.dansplugins.currencies.Currencies: added public void onDisable();

Verification

Verified on a real Spigot server before publication; this release carries the exact jar that was verified.

  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.19.4 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 1.21.11 (11 assertions passed).
  • boot gate run: booted twice on a fresh Spigot server running Minecraft 26.2 (11 assertions passed).
  • Save compatibility, tested by hand. The save-compatibility gate could not run: it boots the current stable (2.1.0) against the latest Medieval Factions first, and 2.1.0 does not enable on Medieval Factions 5.8 or later (#219). The same upgrade was instead run on a real server with a bot player. 2.1.0 on Medieval Factions 5.7.2 created a faction, a currency and 5 minted coins; this release on Medieval Factions 6.1 read all of it back (Minted: 5, the coins in the player's inventory) and minted more (Minted: 6). There are no storage changes between the two versions. Evidence.

Upgrading: use Medieval Factions 5.8 or later (6.1.0 recommended). A server still on Currencies 1.x data must upgrade through 2.1.0 first: the 1.x migration was removed in this release.

Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.


drafted by Claude on behalf of Daniel Stephenson