Package de.Keyle.MyPet.api
Class MyPetGlobal.Respawn
java.lang.Object
de.Keyle.MyPet.api.MyPetGlobal.Respawn
- Enclosing class:
MyPetGlobal
How long a dead pet takes to come back, and what reviving it costs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionPer-second term of the revival cost:cost = Factor * respawnSeconds + Fixed.Flat term of the revival cost.Whether automatic respawning is switched off, leaving a dead pet to be revived manually.Per-level term of the respawn wait after a non-player kill:time = Factor * level + Fixed, in seconds.Flat term of the respawn wait after a non-player kill, in seconds.Per-level term of the respawn wait after a player kill:time = Factor * level + Fixed, in seconds.Flat term of the respawn wait after a player kill, in seconds. -
Method Summary
-
Field Details
-
DISABLE_AUTO_RESPAWN
Whether automatic respawning is switched off, leaving a dead pet to be revived manually.MyPet.Respawn.Time.Disabled-- defaultfalse. -
TIME_FACTOR
Per-level term of the respawn wait after a non-player kill:time = Factor * level + Fixed, in seconds.MyPet.Respawn.Time.Default.Factor-- default5. -
TIME_PLAYER_FACTOR
Per-level term of the respawn wait after a player kill:time = Factor * level + Fixed, in seconds.MyPet.Respawn.Time.Player.Factor-- default5. -
TIME_FIXED
Flat term of the respawn wait after a non-player kill, in seconds.MyPet.Respawn.Time.Default.Fixed-- default0. -
TIME_PLAYER_FIXED
Flat term of the respawn wait after a player kill, in seconds.MyPet.Respawn.Time.Player.Fixed-- default0. -
COSTS_FACTOR
Per-second term of the revival cost:cost = Factor * respawnSeconds + Fixed.MyPet.Respawn.EconomyCost.Factor-- default1.0. -
COSTS_FIXED
Flat term of the revival cost.MyPet.Respawn.EconomyCost.Fixed-- default0.0.
-