config.yml
Main Configuration
Last updated
Main Configuration
Last updated
The config.yml file is the main configfile of MyPet. All pet type related options can be found in the pet-config.yml.
Setting
Type
Description
MyPet:
Disable-All-Actionbar-Messages
boolean
If true, no actionbar messages will be used.
OwnerCanAttackPet:
boolean
Enable to allow the owner to hit his own pet.
DisablePetVersusPlayer:
boolean
Prevents combat between players and pets.
Make-Pet-Invisible-When-Owner-Is-Invisible:
boolean
Makes the pet invisible when the owner has the Invisible
effect. Does not affect vanished players.
RetainEquipmentOnTame:
boolean
Allows mobs to keep their equipment after leashed (based on the default MC drop chance).
FollowStartDistance:
double
Sets the distance from the player where the pet starts to follow him.
Max-Stored-Pet-Count:
integer
Sets the maximum amount of inactive (stored) pets a player can have.
Throw-PlayerMoveEvent-While-Riding:
boolean
Disable this when other plugins cause bugs because of the thrown events.
OverwriteLanguages:
string
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
string
a command that will be executed when a player rightclicks his own pet. Supports the following placeholders:
%pet_owner%
%pet_level%
%pet_status%
%pet_type%
%pet_uuid%
%pet_world_group%
%pet_skilltree_name%
%pet_name%
Leash:
Consume:
boolean
Enable to consume the leash item when a new pet is leashed.
AllowRanged
boolean
Enable to allow players to catch pets with projectiles when the leash item is a bow
Log:
Level:
string
Set the level at which the messages will be logged to the file. All possible log levels can be found here.
Report-Errors
boolean
If enabled all errors that occur are reported automatically
Unique-ID
string
This is used to identify different users for the error reporter. This will allow the devs to see how many servers have the same problem.
❗ DO NOT CHANGE ❗
Info:
Wiki-URL:
string
This can be changed if the server has it's own Wiki for MyPet.
Update:
Check:
boolean
Sets if the plugin will check for updates when it is loaded. This will not download the new version.
Download:
boolean
Sets if the plugin will download the update.
ReplaceOld:
boolean
Sets if the plugin will load the update on the next server start.
In-Background
boolean
If true the plugin will not wait until the updated is downloaded on start.
OP-Notification
boolean
If true, the plugin will notify OPs if a new version is available.
Repository:
Type:
string
The storage type where the plugin will save the pets into. Options: SQLite
,MySQL
,MongoDB
.
ConvertFrom:
string
This options allows to migrate from one storage type to another. For example from SQLite
to MySQL
.
MySQL:
Database:
string
The name of the MySQL database.
TablePrefix:
string
The table prefix if the database is shared with other applications.
Host:
string
The address of the MySQL server.
Port:
integer
The port of the MySQL server.
Password:
string
The password of the MySQL user.
User:
string
The username of the MySQL user.
MaxConnections:
integer
The amount of simultaneous connections the plugin will create to the MySQL server. You can find more about the best pool size here.
CharacterEncoding
string
The encoding used by the database.
MongoDB:
Database:
string
The name of the MongoDB database.
CollectionPrefix:
string
The collection prefix if the database is shared with other applications.
Host:
string
The address of the MongoDB server.
Port:
integer
The port of the MongoDB server.
Password:
string
The password of the MongoDB user.
User:
string
The username of the MongoDB user.
Respawn:
Time:
Default:
Factor:
integer
Determines how long the owner has to wait until the pet respawns when it wasn't killed by a player.
Respawntime = Factor * (Level of MyPet) + Fixed
Fixed:
integer
See Factor
Player:
Factor:
integer
Determines how long the owner has to wait until the pet respawns when it was killed by a player.
Respawntime = Factor * (Level of MyPet) + Fixed
Fixed:
integer
See Factor
EconomyCost:
Factor:
double
Determines how much it will cost if you want to revive a dead MyPet.
Costs = Factor * (Respawn Time in sec.) + Fixed
Fixed:
double
See Factor
Permissions:
Enabled:
boolean
Disable the use of permissions and fall back to the OP permission system.
Extended:
boolean
Enable if you want to use some addition permissions that can be found here.
LevelSystem:
CalculationMode:
string
Set this to JS
or JavaScript
if you want use a custom exp.js.
HungerSystem:
Active:
boolean
Disable the hungersystem if you don't want your pets need food to survive.
Time:
integer
Sets the interval (in seconds) in which the hunger counter will be reduced by 1
.
SaturationPerFeed:
double
Sets the value the hunger counter will be increased by if the pet is fed.
Affect-Ride-Speed:
boolean
If true the saturation affects the ride speed.
Affect-Beacon-Range:
boolean
If true the saturation affects the beacon range.
Skilltree:
AutomaticAssignment:
boolean
Enable to automatically assign a skilltree to a pet when it is leashed.
RandomAssignment:
boolean
Like AutomaticAssignment
but the skilltree is selected randomly.
ChooseOnce:
boolean
Enable this if players shouldn't be able to pick another skilltree once the pet has a skilltree.
PreventLevellingWithout:
boolean
Pets without a skilltree will not gain XP if it is set to true
.
SwitchFee:
Admin:
boolean
Set this to true
if admins should pay the same skilltree switch penalty like normal players.
Percent:
integer
The percentage of XP a players has to pay if he switches to another skilltree.
Fixed:
double
The amount of XP a players has to pay if he switches to another skilltree.
Name:
Filter:
list
Every pet name is checked against this list of filters (string/regular expression).
MaxLength:
integer
The maximum length a petname can have.
Tag:
Show:
boolean
Set this to false
if you don't want nametags for MyPets.
Prefix:
string
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:
string
This text will be added 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:
boolean
This setting 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 to that enemy. So if a pet does 50% of the damage it will gain 50% of the total XP.
Passive:
Always-Grant-Passive-XP:
boolean
PercentPerMonster:
integer
Sets the percentage of XP a pet will get when the owner kills an enemy.
Loss:
Drop:
boolean
If this setting is set to true
the lost XP is dropped on the ground and can be picked up by others.
Percent:
integer
Sets the percentage of XP a pet will lose when it dies.
Fixed:
double
Sets the XP a pet will lose when it dies.
Allow-Level-Downgrade:
boolean
If true pets can lose levels if they die.
Gain:
PreventFromSpawnReason:
list
This setting is a list of spawn reasons. Every mob that is spawned by any of these spawn reasons will not grant any XP. All spawn reasons can be found here. This resets on every server reload/restart so it will not prevent it after a restart!
LevelCap:
integer
A pet can not gain any XP and level up if that level is reached.
Disabled-Worlds:
list
A list of worlds where pets can't gain any XP
Modifier:
Global:
double
The global XP modifier.
1.0 equals 100% XP / 2.0 equals 200% XP
Use-Permissions:
boolean
If true, the modifier can be changed via permissions too. See permissions.
Skill:
Item:
string
Sets the item that allows the player to use the Control skill the pet. This setting follows the config item guidelines
Ride:
Item:
string
Sets the item that allows the player to mount the pet. This setting follows the config item guidelines
HungerPerMeter:
double
If the Hunger-System is active, this setting set the value the hunger value is decreased by for every ridden meter.
Creative:
boolean
Allows players to open the inventory of their pet when they are in creative mode.
DropWhenOwnerDies:
boolean
When this is set to true
the pet will drop the content in it's inventory when the owner dies.
HungerDecreaseTime:
integer
If the Hunger-System is active, this setting sets the interval in which the value the hunger value is decreased by 1.
Party-Support:
boolean