Class MyPetGlobal.Respawn

java.lang.Object
de.Keyle.MyPet.api.MyPetGlobal.Respawn
Enclosing class:
MyPetGlobal

public static final class MyPetGlobal.Respawn extends Object
How long a dead pet takes to come back, and what reviving it costs.
  • Field Details

    • DISABLE_AUTO_RESPAWN

      public static final ConfigKey<Boolean> DISABLE_AUTO_RESPAWN
      Whether automatic respawning is switched off, leaving a dead pet to be revived manually.

      MyPet.Respawn.Time.Disabled -- default false.

    • TIME_FACTOR

      public static final ConfigKey<Integer> 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 -- default 5.

    • TIME_PLAYER_FACTOR

      public static final ConfigKey<Integer> 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 -- default 5.

    • TIME_FIXED

      public static final ConfigKey<Integer> TIME_FIXED
      Flat term of the respawn wait after a non-player kill, in seconds.

      MyPet.Respawn.Time.Default.Fixed -- default 0.

    • TIME_PLAYER_FIXED

      public static final ConfigKey<Integer> TIME_PLAYER_FIXED
      Flat term of the respawn wait after a player kill, in seconds.

      MyPet.Respawn.Time.Player.Fixed -- default 0.

    • COSTS_FACTOR

      public static final ConfigKey<Double> COSTS_FACTOR
      Per-second term of the revival cost: cost = Factor * respawnSeconds + Fixed.

      MyPet.Respawn.EconomyCost.Factor -- default 1.0.

    • COSTS_FIXED

      public static final ConfigKey<Double> COSTS_FIXED
      Flat term of the revival cost.

      MyPet.Respawn.EconomyCost.Fixed -- default 0.0.