Class MyPetGlobal.Misc

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

public static final class MyPetGlobal.Misc extends Object
Assorted server-wide behaviour that does not belong to a larger system.
  • Field Details

    • CONSUME_LEASH_ITEM

      public static final ConfigKey<Boolean> CONSUME_LEASH_ITEM
      Whether leashing a mob consumes the leash item.

      MyPet.Leash.Consume -- default false.

    • ALLOW_RANGED_LEASHING

      public static final ConfigKey<Boolean> ALLOW_RANGED_LEASHING
      Whether players may catch pets with projectiles when the leash item is a bow.

      MyPet.Leash.AllowRanged -- default true.

    • OWNER_CAN_ATTACK_PET

      public static final ConfigKey<Boolean> OWNER_CAN_ATTACK_PET
      Whether an owner is allowed to hit their own pet.

      MyPet.OwnerCanAttackPet -- default false.

    • OWNER_THORNS_DAMAGE_PET

      public static final ConfigKey<Boolean> OWNER_THORNS_DAMAGE_PET
      Whether an owner's Thorns armor damages their own pet. Only applies when OWNER_CAN_ATTACK_PET is on; otherwise Thorns is blocked along with every other owner hit.

      MyPet.OwnerThornsDamagePet -- default false.

    • DISABLE_PET_VS_PLAYER

      public static final ConfigKey<Boolean> DISABLE_PET_VS_PLAYER
      Whether combat between players and pets is blocked entirely.

      MyPet.DisablePetVersusPlayer -- default false.

    • PET_KILLS_GIVE_PLAYER_REWARDS

      public static final ConfigKey<Boolean> PET_KILLS_GIVE_PLAYER_REWARDS
      Whether mobs killed by a pet drop experience and loot as if a player had killed them.

      MyPet.PetKillsGivePlayerRewards -- default true.

    • INVISIBLE_LIKE_OWNER

      public static final ConfigKey<Boolean> INVISIBLE_LIKE_OWNER
      Whether a pet turns invisible while its owner has the invisibility effect. Does not apply to vanished players.

      MyPet.Make-Pet-Invisible-When-Owner-Is-Invisible -- default true.

    • THROW_PLAYER_MOVE_EVENT_WHILE_RIDING

      public static final ConfigKey<Boolean> THROW_PLAYER_MOVE_EVENT_WHILE_RIDING
      Whether PlayerMoveEvent is fired while a player rides a pet. Turn off when another plugin misbehaves on those events.

      MyPet.Throw-PlayerMoveEvent-While-Riding -- default true.

    • DISABLE_ALL_ACTIONBAR_MESSAGES

      public static final ConfigKey<Boolean> DISABLE_ALL_ACTIONBAR_MESSAGES
      Whether MyPet suppresses all of its action-bar messages.

      MyPet.Disable-All-Actionbar-Messages -- default false.

    • RECALL_PET_AFTER_DESPAWN

      public static final ConfigKey<Boolean> RECALL_PET_AFTER_DESPAWN
      Whether a pet that despawned for being too far from its owner stays active and can be recalled, rather than being removed outright.

      MyPet.Recall-Pet-After-Despawn -- default true.

    • OVERWRITE_LANGUAGE

      public static final ConfigKey<String> OVERWRITE_LANGUAGE
      Forces one language for every player instead of detecting it per player. Empty means per-player detection.

      MyPet.OverwriteLanguages -- default "".

    • WIKI_URL

      public static final ConfigKey<String> WIKI_URL
      The wiki address MyPet points players at. Change it if the server runs its own MyPet wiki.

      MyPet.Info.Wiki-URL -- default "https://wiki.mypet-plugin.com".

    • RIGHT_CLICK_COMMAND

      public static final ConfigKey<String> RIGHT_CLICK_COMMAND
      A command run when a player right-clicks their own pet. A leading slash is stripped so the value is dispatchable as-is. Supports the %pet_owner%, %pet_level%, %pet_status%, %pet_type%, %pet_uuid%, %pet_world_group%, %pet_skilltree_name% and %pet_name% placeholders.

      MyPet.Right-Click-Command.

    • MAX_STORED_PET_COUNT

      public static final ConfigKey<Integer> MAX_STORED_PET_COUNT
      How many inactive (stored) pets one player may keep.

      MyPet.Max-Stored-Pet-Count -- default 45.

    • MAX_ACTIVE_PET_COUNT

      public static final ConfigKey<Integer> MAX_ACTIVE_PET_COUNT
      Ceiling for how many pets a player may have out at once. Default 1 keeps single-pet behaviour; raising it only grants the extra slots to players who also hold a MyPet.petlimit.active.<n> node.
    • STORE_OLDEST_WHEN_FULL

      public static final ConfigKey<Boolean> STORE_OLDEST_WHEN_FULL
      Whether acquiring a pet with every slot full stores the least recently switched-to pet and proceeds, instead of refusing.

      MyPet.Store-Oldest-When-Full -- default true. Calling a pet already behaved this way; this removes the inconsistency for taming, buying, trading and capture. Admin creation (/petadmin create) is unaffected and keeps its explicit -f opt-in.