config.yml
MyPet's main config file.
The config.yml file is the main config file of MyPet. All pet type related options can be found in the pet-config.yml.
Below are the available settings, their types and descriptions.
MyPet:
Disable-All-Actionbar-Messages
Type: boolean
Description: If true, no action bar messages will be used.
Recall-Pet-After-Despawn
Type: boolean
Description: Not yet documented.
PetKillsGivePlayerRewards
Type: boolean
Description: When true, mobs killed by a MyPet will drop experience and loot as if killed by a player.
OwnerCanAttackPet
Type: boolean
Description: Enable to allow the owner to hit their own pet.
DisablePetVersusPlayer
Type: boolean
Description: Prevents combat between players and pets.
Make-Pet-Invisible-When-Owner-Is-Invisible
Type: boolean
Description: Makes the pet invisible when the owner has the
Invisibleeffect. Does not affect vanished players.
FollowStartDistance
Type: double
Description: Sets the distance from the player where the pet starts to follow him.
Max-Stored-Pet-Count
Type: integer
Description: Sets the maximum amount of inactive (stored) pets a player can have.
Throw-PlayerMoveEvent-While-Riding
Type: boolean
Description: Disable this when other plugins cause bugs because of the thrown events.
OverwriteLanguages
Type: string
Description: If you don't want per player language detection you can use this to overwrite the language for all players. Available languages can be found here. Example:
pt_br
Right-Click-Command
Type: string
Description: A command that will be executed when a player right clicks their own pet. Supports the following placeholders:
%pet_owner%%pet_level%%pet_status%%pet_type%%pet_uuid%%pet_world_group%%pet_skilltree_name%%pet_name%
Entity
Skip-Target-AI-Ticks
Type: integer
Default: 1
Description: The default value of 1 will skip every 2nd AI tick. Carefully increasing the value will skip the set number of server ticks, decreasing load on the server, at the cost of tracking behavior.
FollowStartDistance
Type: double
Description: Distance at which the pet begins to follow the player.
Leash
Log
Level
Type: string
Description: Set the level at which the messages will be logged to the file. All possible log levels.
Report-Errors:
Type: boolean
Default: true
Description: If enabled, errors caused by MyPet are automatically reported to the developers using Sentry, an externally hosted error-tracking service. Set this to
falseto switch error reporting off completely — nothing is then sent anywhere. The change takes effect after a server restart.
❗ DO NOT CHANGE THE UNIQUE-ID STRING ❗
What is sent to Sentry
Error reporting is enabled by default. Only errors that MyPet is actually involved in are reported.
When such an error occurs, the report contains:
The exception itself: type, message and full stack trace
Recent log messages leading up to the error (breadcrumbs)
The
Unique-IDfrom this config, used as an anonymous server identifierThe MyPet version and build number, and whether it is a release or dev build
The server brand and version (Paper, Spigot, Purpur, CraftBukkit, …), the Minecraft version and the Java version
The storage backend in use (e.g. SQLite, MySQL)
The number of currently active pets
A list of all installed plugins with their versions, and the MyPet hooks that are active
Player names and UUIDs are not collected deliberately, but note that they can still appear incidentally inside an exception message or a captured log line.
Info
Update
Repository
Type
Type: string
Description: The storage type where the plugin will save the pets into. Options:
SQLite,MySQL,MongoDB.
ConvertFrom
Type: string
Description: This option allows to migrate from one storage type to another. For example from
SQLitetoMySQL.
LoadDelay
Type: string
Description: Delays database initialization.
MySQL
Database
Type: string
Description: The name of the MySQL database.
TablePrefix
Type: string
Description: The table prefix if the database is shared with other applications.
Host
Type: string
Description: The address of the MySQL server.
Port
Type: integer
Description: The port of the MySQL server.
Password
Type: string
Description: The password of the MySQL user.
User
Type: string
Description: The username of the MySQL user.
MaxConnections
Type: integer
Description: The amount of simultaneous connections the plugin will create to the MySQL server. More about pool sizing.
CharacterEncoding
Type: string
Description: The encoding used by the database.
MongoDB
Database
Type: string
Description: The name of the MongoDB database.
CollectionPrefix
Type: string
Description: The collection prefix if the database is shared with other applications.
Host
Type: string
Description: The address of the MongoDB server.
Port
Type: integer
Description: The port of the MongoDB server.
Password
Type: string
Description: The password of the MongoDB user.
User
Type: string
Description: The username of the MongoDB user.
Respawn
Time → Default
Factor
Type: integer
Description: Determines how long the owner has to wait until the pet respawns when it wasn't killed by a player. Formula:
Respawntime = Factor * (Level of MyPet) + Fixed
Fixed
Type: integer
Description: See
Factor
Time → Player
Factor
Type: integer
Description: Determines how long the owner has to wait until the pet respawns when it was killed by a player. Formula:
Respawntime = Factor * (Level of MyPet) + Fixed
Fixed
Type: integer
Description: See
Factor
EconomyCost
Factor
Type: double
Description: Determines how much it will cost to revive a dead MyPet. Formula:
Costs = Factor * (Respawn Time in sec.) + Fixed
Fixed
Type: double
Description: See
Factor
Permissions
Enabled
Type: boolean
Description: Disable the use of permissions and fall back to the OP permission system. (https://wiki.mypet-plugin.com/setup/permissions)
Extended
Type: boolean
Description: Enable if you want to use some additional permissions: https://wiki.mypet-plugin.com/setup/permissions#extended-mypet-permissions
Legacy
Type: boolean
Description: Set to true to use permissions nodes from versions prior to MyPet 3.0. Not recommended.
LevelSystem
CalculationMode
Type: string
Default: "Default"
Description: Which curve decides how much experience a pet needs per level. One of
Default(also accepted asMyPet),Linear,PowerorExponential. Not case-sensitive. Unknown values fall back toDefault. More here.
Curve
Only the settings of the selected
CalculationModeare used.Defaulthas no settings.Linear.Base
Type: double
Default: 17.0
Description: Experience needed for each level, when
CalculationModeisLinear.
Power.Factor
Type: double
Default: 7.0
Description: Scales the whole curve, when
CalculationModeisPower.
Power.Exponent
Type: double
Default: 1.5
Description: How sharply the cost accelerates, when
CalculationModeisPower.1.0behaves likeLinear.
Exponential.Base
Type: double
Default: 10.0
Description: Experience needed for level 2, when
CalculationModeisExponential.
Exponential.Growth
Type: double
Default: 1.1
Description: Cost multiplier per level, when
CalculationModeisExponential.1.1means each level costs 10% more than the last.
HungerSystem
Feed-From-Inventory
Type: boolean
Description: When true, allows pets to feed themselves from items stored in their inventories which are a configured food for that pet type.
Damage
Time-Before-Damage
Type: double
Description: Provides a grace period before hunger related damage will be dealt to the pet.
Fixed
Type: double
Description: Base damage applied with each damage tick while starving.
Factor
Type: double
Description: Additional scaling damage component. If set to
0.0(default), damage is purely Fixed.
can-kill
Type: boolean
Description: When set to true, damage dealt to a pet from hunger will be able to kill the pet.
Active
Type: boolean
Description: Disable the hunger system if you don't want your pets to need food to survive.
Time
Type: integer
Description: Sets the interval (in seconds) in which the hunger counter will be reduced by
1.
SaturationPerFeed
Type: double
Description: Sets the value the hunger counter will be increased by if the pet is fed.
Affect-Ride-Speed
Type: boolean
Description: If true the saturation affects the ride speed.
Affect-Beacon-Range
Type: boolean
Description: If true the saturation affects the beacon range.
Skilltree
AutomaticAssignment
Type: boolean
Description: Enable to automatically assign a skilltree to a pet when it is leashed.
RandomAssignment
Type: boolean
Description: Like
AutomaticAssignmentbut the skilltree is selected randomly.
ChooseOnce
Type: boolean
Description: Enable this if players shouldn't be able to pick another skilltree once the pet has a skilltree.
FreeAscension
Type: boolean
Description: If
true(default), ascending - switching into a skilltree whoseSkilltreerequirement lists the pet's current skilltree - is free: noSwitchFeeis charged andChooseOncedoes not block it. Used by the level-20 ascension of the default skilltrees.
PreventLevellingWithout
Type: boolean
Description: Pets without a skilltree will not gain XP if it is set to
true.
SwitchFee
Admin
Type: boolean
Description: Set this to
trueif admins should pay the same skilltree switch penalty like normal players.
Percent
Type: integer
Description: The percentage of XP a player has to pay if they switch to another skilltree.
Fixed
Type: double
Description: The amount of XP a player has to pay if they switch to another skilltree.
Name
Filter
Type: list
Description: Every pet name is checked against this list of filters (string/regular expression).
MaxLength
Type: integer
Description: The maximum length a pet name can have.
Tag
Show
Type: boolean
Description: Set this to
falseif you don't want nametags for MyPets.
Prefix
Type: string
Description: This text will be added in front of the name. You can use color codes and these placeholders:
<owner>⇒ name of the owner<level>⇒ level of the pet
Suffix
Type: string
Description: This text will be added to the end of the name. You can use color codes and these placeholders:
<owner>⇒ name of the owner<level>⇒ level of the pet
Exp
DamageWeightedExperienceDistribution
Type: boolean
Description: Allows pets to gain XP even if they did not kill the enemy. Every bit of damage is counted and when the enemy dies the XP will be split up to reflect the damage given. Example: If a pet does 50% of the damage it will gain 50% of the total XP.
LevelCap
Type: integer
Description: The maximum level at which a pet can accrue experience.
Disabled-Worlds
Type: list
Description: List of worlds where experience cannot be gained by the pet.
Passive
Always-Grant-Passive-XP
Type: boolean
Description: Allows the pet to always gain XP when the owner kills a monster, even if it has a damage skill (Damage or Ranged).
PercentPerMonster
Type: integer
Description: Sets the percentage of XP a pet will get when the owner kills an enemy.
Loss
Drop
Type: boolean
Description: If true the lost XP is dropped on the ground and can be picked up by others.
Percent
Type: integer
Description: Sets the percentage of XP a pet will lose when it dies.
Fixed
Type: double
Description: Sets the XP a pet will lose when it dies.
Allow-Level-Downgrade
Type: boolean
Description: If true pets can lose levels if they die.
Gain
PreventFromSpawnReason
Type: list
Description: A list of spawn reasons; mobs spawned by any of these reasons will not grant any XP. All spawn reasons. Note: This resets on every server reload/restart so it will not prevent it after a restart!
LevelCap
Type: integer
Description: A pet cannot gain any XP or level up if this level is reached.
Disabled-Worlds
Type: list
Description: A list of worlds where pets can't gain any XP.
Modifier
Global
Type: double
Description: The global XP modifier. 1.0 equals 100% XP; 2.0 equals 200% XP.
Use-Permissions
Type: boolean
Description: If true, the modifier can be changed via permissions too. See: https://wiki.mypet-plugin.com/setup/permissions
Skill
Item
Type: string
Description: Sets the item that allows the player to use the Control skill on the pet. Follows the config item guidelines.
Item
Type: string
Description: Sets the item that allows the player to mount the pet. Follows the config item guidelines.
HungerPerMeter
Type: double
Description: If the Hunger-System is active, sets how much hunger is decreased for every ridden meter.
Prevent-Teleportation-While-Riding
Type: boolean
Description: When true, prevents the player from teleporting while riding a pet.
Creative
Type: boolean
Description: Allows players to open the inventory of their pet when they are in creative mode.
DropWhenOwnerDies
Type: boolean
Description: When true the pet will drop the content in its inventory when the owner dies.
Disable-Head-Textures
Type: boolean
Description: Not yet documented.
HungerDecreaseTime
Type: integer
Description: If the Hunger-System is active, sets the interval in which the hunger value is decreased by 1.
Party-Support
Type: boolean
Description: Enables support for parties from these plugins: MCMMO, Heroes, Ancient RPG. If you have any party plugins MyPet should support please request them on GitHub or Discord.
Last updated
Was this helpful?
