Package de.Keyle.MyPet.api
package de.Keyle.MyPet.api
Plugin-wide configuration, world grouping, and shared helpers.
MyPetGlobal holds every setting read from config.yml as a typed
ConfigKey constant, grouped into nested sections that
mirror the YAML layout. Values are hot-reloaded, so read them through
MyPetGlobal.Section.KEY.get() at use time rather than caching them.
WorldGroup maps Bukkit worlds onto named groups, which is how pets are kept
separate (or shared) between worlds and how MyPet is disabled per world.
Util collects small shared helpers, including the sanitized MiniMessage
instance that must be used for any player-controlled text.
-
ClassesClassDescriptionPlugin-wide settings from
config.yml, each aConfigKeydeclared as apublic static finalfield — the single source of truth for global config, mirroring the per-petConfigKeyfields on eachPetXxxclass.Pet saturation: how it drains, how it is restored, and what starving costs.Which experience curve pets level along.Tunable parameters for the built-inLinear/Power/ExponentialXP curves.How pets earn and lose experience.Multipliers applied to experience a pet earns.Assorted server-wide behaviour that does not belong to a larger system.Limits and presentation for pet names.The floating name tag drawn above a pet.How strictly permission nodes are enforced.Where pets are persisted, and how that storage is reached.Connection details for theMySQLrepository type.How long a dead pet takes to come back, and what reviving it costs.Skilltree assignment rules and the fee for switching.Per-skill server-wide settings.The Backpack skill.The Beacon skill.The Fishing skill.The Lumberjack skill.The Mining skill.The Ride skill.The built-in update checker and downloader.Browser-based config editor (`/mypet editor`) — relay endpoints + on/off.Small helpers shared across the API: the sanitized MiniMessage instance for player-controlled text, a shared random source, and a few collection and HTTP conveniences.A named set of worlds that share pets.