Skip to content

1.4.0

Choose a tag to compare

@dmccoystephenson dmccoystephenson released this 02 Oct 01:37
42136cb

1.4.0

For a server running v1.3.0, this is a drop-in upgrade. Home records on disk use the same format, and commands, permissions and config keys are unchanged. Homes that fail to save, load or migrate now show up as warnings in the server log instead of quietly going missing. Players who have not set a home get a clear message from /home. If usage reporting is on, every event now includes the plugin version. You can also tag all reports from a server, for example to mark a test server.

Changes

Home storage

  • When a home record or the record index can't be written, the server log shows a warning naming the player and file. Before, the failure was silent. (#89)
  • Warnings are logged for a home record that can't be read, a record whose coordinates are malformed, and a record that has a world but is missing coordinates. A player who has never run /sethome does not trigger a warning. (#89)
  • If moving the legacy Medieval-Set-Home folder fails, the log lists each file that couldn't be moved and says how many were left behind. The move is not tried again, so those files have to be moved by hand. (#89)
  • On a first start with no saved homes, the plugin no longer tries to read a missing index file. (#89)

Commands

  • /home with no home set now says "You don't have a home set." Before, it said "Home location was null. Please contact the developer." /home <player> for a player with no home now says "That player doesn't have a home set." (#93)

Usage reporting

  • Every usage-reporting event now carries the plugin version, not just the startup event. (#96)
  • The shared plugins/trace/config.yml file can now hold an optional tags: block. Its tags are added to every event that plugins on the server report, for example ci: "true" on a test server. When this release creates the file, it includes the example commented out. An existing file is never rewritten, so to use tags, add the block yourself. (#95)

Version

v1.3.0 → 1.4.0 — MINOR. Mechanical floor from comparing the two jars: MINOR.
Judgment: The removed or changed public signatures on HomeRecord.save/load, the StorageService constructor and TraceClient.builder belong to plugin-internal classes, not to a published API, and the mechanical check already recorded them. The on-disk home record format is the same, and so are the commands, arguments, permissions and config keys. What changed for operators: storage failures are now logged, /home shows a clearer message, every usage event carries a version tag, and plugins/trace/config.yml can hold an optional server-wide tags block. These are new behaviour and new data sent, with nothing that breaks an existing server, so the minor floor stays.

  • minor: storage path changed: src/main/java/dansplugins/sethomesystem/objects/HomeRecord.java
  • minor: storage path changed: src/main/java/dansplugins/sethomesystem/services/StorageService.java
Java API changes (informational — nothing depends on this plugin)
  • dansplugins.sethomesystem.objects.HomeRecord: removed/changed public void load(java.io.File);
  • dansplugins.sethomesystem.objects.HomeRecord: removed/changed public void save(java.io.File);
  • dansplugins.sethomesystem.objects.HomeRecord: added public void load(java.io.File, java.util.logging.Logger);
  • dansplugins.sethomesystem.objects.HomeRecord: added public void save(java.io.File, java.util.logging.Logger);
  • dansplugins.sethomesystem.services.StorageService: removed/changed public dansplugins.sethomesystem.services.StorageService(dansplugins.sethomesystem.data.PersistentData, java.io.File);
  • dansplugins.sethomesystem.services.StorageService: added public dansplugins.sethomesystem.services.StorageService(dansplugins.sethomesystem.data.PersistentData, java.io.File, java.util.logging.Logger);
  • dansplugins.sethomesystem.trace.TraceClient: removed/changed public static dansplugins.sethomesystem.trace.TraceClient$Builder builder(java.lang.String, java.lang.String);
  • dansplugins.sethomesystem.trace.TraceClient: added public static dansplugins.sethomesystem.trace.TraceClient$Builder builder(java.lang.String, java.lang.String, java.lang.String);
  • dansplugins.sethomesystem.trace.TraceClient: added public static final java.lang.String VERSION;

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 gate run: data written by v1.3.0 was loaded by this release across two restarts with nothing lost (16 assertions passed).

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


drafted by Claude on behalf of Daniel Stephenson