Location Repository
A storage backend for despawn locations. Implementations:
YamlLocationRepository — flat
userdata/<uuid>.ymlfiles; zero-config default, byte-compatible with the original plugin's data.JdbcLocationRepository — SQLite (embedded) or MySQL/MariaDB (networked) over a HikariCP pool; indexed, transactional, and shareable across servers.
All methods are called from the server main thread unless a backend documents otherwise; a backend must be safe to call saveOwners repeatedly with small batches.
Inheritors
Functions
Loads every stored location. Malformed entries are skipped, not fatal.
Persists exactly the owners in owners, sourcing each owner's current locations from locationsOf. An owner with no locations is removed from storage. This is the incremental write path — callers pass only the owners that changed.