Skip to content

1.10.0

Choose a tag to compare

@dmccoystephenson dmccoystephenson released this 02 Oct 03:27
2a2e9a2

1.10.0

For a server running v1.9.0, this is a drop-in upgrade. The main fix is to pet records. Before this release, the plugin did not load the saved records back into memory at startup, and the records it saved could be missing changes made since the last restart. Saved records are now loaded and kept across restarts, so details such as the name of a pet that has since died stay available. This release also fixes some smaller bugs, makes the Sniffer default work on newer Minecraft versions, and adds two optional usage-reporting features. Saved data formats, commands, permissions and config keys are unchanged.

Changes

Pet data

  • Pet records saved in petRecords.json are now loaded at startup and saved from the same store the plugin uses while running. They used to be thrown away on load, and changes made during a session could fail to persist. (#325)

Bug fixes

  • Unlocking mode (/wp unlock) is now cleared when a player leaves, like the other pet action modes. Before, a player who quit mid-unlock was still in unlocking mode when they rejoined. (#324)
  • Removed a duplicate Endermite entry from the default entity settings. (#324)
  • The Sniffer's default taming item (short grass) is now looked up by name, so it works on Minecraft versions from 1.20.3 onward, where the item is named SHORT_GRASS, as well as on older ones. (#327)

Usage reporting

  • Every usage-reporting event now includes the plugin version, not just the startup event. (#329)
  • The shared plugins/trace/config.yml file now supports an optional tags: block. Its tags are added to every event that participating plugins report. For example, you can set ci: "true" on a test server so its events are not counted as a real installation. Newly created files include a commented-out example, and existing files are not changed. (#328)

Version

v1.9.0 → 1.10.0 — MINOR. Mechanical floor from comparing the two jars: MINOR.
Judgment: There is no breaking change here, so this stays at the minor floor. The pets.json and petRecords.json formats are unchanged, and no command arguments, permissions or config key meanings change. The behaviour changes are bug fixes: pet records saved to disk are now loaded back, unlocking mode is cleared on quit, a duplicate Endermite default is removed, and the Sniffer taming item is looked up by name. The other changes add new optional behaviour: usage events now carry the plugin version, and the shared plugins/trace/config.yml can hold an optional tags block. Existing servers don't need to do anything for either.

  • minor: storage path changed: src/main/java/dansplugins/wildpets/data/EphemeralData.java
  • minor: storage path changed: src/main/java/dansplugins/wildpets/pet/record/PetRecordRepository.java
  • minor: storage path changed: src/main/java/dansplugins/wildpets/storage/StorageService.java
Java API changes (informational — nothing depends on this plugin)
  • public class added: dansplugins.wildpets.utils.RenamedConstants
  • dansplugins.wildpets.pet.record.PetRecordRepository: added public boolean addExistingPetRecord(dansplugins.wildpets.pet.record.PetRecord);
  • dansplugins.wildpets.pet.record.PetRecordRepository: added public void clearAll();
  • dansplugins.wildpets.trace.TraceClient: removed/changed public static dansplugins.wildpets.trace.TraceClient$Builder builder(java.lang.String, java.lang.String);
  • dansplugins.wildpets.trace.TraceClient: added public static dansplugins.wildpets.trace.TraceClient$Builder builder(java.lang.String, java.lang.String, java.lang.String);
  • dansplugins.wildpets.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.9.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