Repository navigation
1.9.0
1.9.0
A server on v1.8.0 can drop in this build with no data migration: pet and pet-record files load unchanged. Two things change on first start: the three usage-reporting.* keys are added to config.yml and reporting is on by default (the plugin sends its name, version and command names to https://trace.danielstephenson.dev, nothing about players or the server), and a new plugins/trace/config.yml is created as a server-wide switch. Players gain /wp trade, tamed pets no longer despawn when far away or after chunk reloads, and every command's chat output is restyled.
Changes
New features
/wp trade <playerName>transfers your selected pet to another online player, respecting the recipient's pet limit; guarded by the newwp.tradepermission (#298)- Usage reporting: one event at startup and one per command, sent off the main thread, with
usage-reporting.enabledinconfig.yml, a server-wideplugins/trace/config.ymlswitch, andTRACE_USAGE_REPORTING=off/DO_NOT_TRACK=1environment opt-outs; the console states on startup whether reporting is on and why (#318, #320)
Fixes
- Pets no longer disappear: tamed entities are marked
setRemoveWhenFarAway(false)and persistence flags are re-applied when their chunk loads and after startup (#299) - Duplicate pet records are no longer created for the same entity, and pet entity lookups are indexed by UUID instead of scanning every list (#314)
Command output
- All command, interaction and event messages use the box-drawing style shared with Activity Tracker;
/wp config listis now one aligned key per line (#301) /wp helpnow listscheckaccess,statsandtrade(#308, #298)
Upgrade notes
- Usage reporting is enabled by default. To turn it off for this plugin set
usage-reporting.enabled: falseinplugins/WildPets/config.yml; to turn it off for every trace-reporting plugin setenabled: falseinplugins/trace/config.yml. - Grant
wp.tradeto players who should be able to trade pets, or deny it to those who should not.
Version
v1.8.0 → 1.9.0 — MINOR. Mechanical floor from comparing the two jars: MINOR.
Judgment: Nothing in the diff breaks an existing v1.8.0 server on upgrade: the pets/records on-disk format is unchanged (load path now routes through addExistingPet and dedupes records, but reads the same data), the new usage-reporting config keys are additive and are written into an existing config.yml at startup, and no existing command's arguments or semantics change (output is restyled and /wp now returns true instead of falling through to Bukkit's usage line). The Ponder removal swaps Pet's Lockable/Savable interfaces for local copies and narrows getAccessList() to List, but the mechanical check already saw that signature change and Wild-Pets is not consumed as a library by other plugins in practice. The substantive new behaviour is /wp trade with the wp.trade permission, usage reporting that is on by default and writes plugins/trace/config.yml, and the pet-persistence fix, all of which are minor.
- minor: permission added: wp.trade
- 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: storage path changed: src/main/java/dansplugins/wildpets/data/Lockable.java
- minor: storage path changed: src/main/java/dansplugins/wildpets/data/Savable.java
- minor: storage path changed: src/main/java/dansplugins/wildpets/pet/Pet.java
- minor: storage path changed: src/main/java/dansplugins/wildpets/pet/list/PetListRepository.java
- minor: storage path changed: src/main/java/dansplugins/wildpets/pet/record/PetRecord.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.commands.AbstractPluginCommand
- public class added: dansplugins.wildpets.commands.ArgumentParser
- public class added: dansplugins.wildpets.commands.CommandService
- public class added: dansplugins.wildpets.commands.PermissionChecker
- public class added: dansplugins.wildpets.commands.TradeCommand
- public class added: dansplugins.wildpets.data.Lockable
- public class added: dansplugins.wildpets.data.Savable
- public class added: dansplugins.wildpets.helpers.UUIDChecker
- public class added: dansplugins.wildpets.listeners.ChunkLoadHandler
- public class added: dansplugins.wildpets.listeners.EventHandlerRegistry
- public class added: dansplugins.wildpets.trace.TraceClient
- public class added: dansplugins.wildpets.trace.TraceClient$Builder
- public class added: dansplugins.wildpets.utils.MessageFormat
- dansplugins.wildpets.config.ConfigService: added public boolean isUsageReportingEnabled();
- dansplugins.wildpets.config.ConfigService: added public java.lang.String getUsageReportingEndpoint();
- dansplugins.wildpets.config.ConfigService: added public java.lang.String getUsageReportingKey();
- dansplugins.wildpets.config.ConfigService: added public void saveUsageReportingDefaultsIfNotPresent();
- dansplugins.wildpets.pet.Pet: removed/changed public java.util.ArrayList<java.util.UUID> getAccessList();
- dansplugins.wildpets.pet.Pet: added public java.util.List<java.util.UUID> getAccessList();
- dansplugins.wildpets.pet.Pet: added public static void applyPersistenceFlags(org.bukkit.entity.Entity, boolean);
- dansplugins.wildpets.pet.Pet: added public void ensurePersistence();
- dansplugins.wildpets.pet.Pet: added public void ensurePersistence(org.bukkit.entity.Entity);
- dansplugins.wildpets.pet.Pet: added public void transferOwnershipTo(java.util.UUID, java.util.UUID);
- dansplugins.wildpets.pet.list.PetList: added public boolean removePetForTransfer(dansplugins.wildpets.pet.Pet);
- dansplugins.wildpets.pet.list.PetList: added public dansplugins.wildpets.pet.list.PetList(dansplugins.wildpets.config.ConfigService, java.util.UUID, dansplugins.wildpets.helpers.ServerProvider);
- dansplugins.wildpets.pet.list.PetListRepository: removed/changed public void createPetListForPlayer(java.util.UUID);
- dansplugins.wildpets.pet.list.PetListRepository: added public boolean hasNoTrackedPets();
- dansplugins.wildpets.pet.list.PetListRepository: added public boolean transferPet(dansplugins.wildpets.pet.Pet, java.util.UUID);
- dansplugins.wildpets.pet.list.PetListRepository: added public dansplugins.wildpets.pet.list.PetList createPetListForPlayer(java.util.UUID);
- dansplugins.wildpets.pet.list.PetListRepository: added public dansplugins.wildpets.pet.list.PetListRepository(dansplugins.wildpets.config.ConfigService, dansplugins.wildpets.helpers.ServerProvider);
- dansplugins.wildpets.pet.list.PetListRepository: added public void addExistingPet(dansplugins.wildpets.pet.Pet);
- dansplugins.wildpets.pet.list.PetListRepository: added public void clearAll();
- dansplugins.wildpets.pet.record.PetRecord: added public int hashCode();
- dansplugins.wildpets.pet.record.PetRecordRepository: added public dansplugins.wildpets.pet.record.PetRecord getOrCreatePetRecord(dansplugins.wildpets.pet.Pet) throws dansplugins.wildpets.exceptions.PetRecordNotFoundException;
Verification
Booted twice on a real Spigot server before publication — boot gate run (10 assertions passed). This release carries the exact jar that was verified.
Install with Dan's Plugin Manager: /dpm get <plugin>. How stable releases are made: Release channels.
drafted by Claude on behalf of Daniel Stephenson