━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Orginal Link: https://www.spigotmc.org/resources/...13-x-mysql-mongodb-levels-guis-effects.46406/
Please Give me a positive rating as a token of appreciation
Please Give me a positive rating as a token of appreciation
DONATION: Want more plugins donate any amount to
paypal.me/qtchan
Join my public server play.slimeskies.ga
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
paypal.me/qtchan
Join my public server play.slimeskies.ga
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
UpgradablesPets
Spigot versions 1.7 - 1.13.2
Spigot versions 1.7 - 1.13.2
- Supports all versions from 1.7 to 1.13.x
- Eula friendly
- MySQL - MongoDB - YAML data storage support
- Pets' levels
- Potion's Effects (Watch the gifs)
- Customizable pets respawn delay after death
- Vault and TokenEnchant economies support
- multi-worlds support
- Blacklist words in pets' names (read more/perms)
- Disable pets in some worlds (update/perms)
- Placeholders
- Fully Customizable:
- Messages
- GUIs Display names
- GUIs Lores
- Pets' names.
- Pets' name format (permissions)
- Max names length
- Enable/Disable baby pets
- Pets:
- Cow
- Pig
- Sheep
- Chicken
- Ocelot
- Slime
- Wolf
- Mushroom cow
- Silverfish
- Rainbow Sheep
- Vips' pets
- Only an economy plugin as a dependency
Users:
- /pet -> Main command (if enabled in the config it opens the gui)
- /pet help -> Shows subcommands (Permission to display staff commands: upgradablespets.staff)
- /pet gui -> Opens the gui
- /pet rename -> Renames the pet
- /pet here -> Teleports the pet to player's location
- /pet away -> Despawns the pet
- /pet delete -> Permanently delete the pet
- /pet count -> Count all online pets
- /pet count <world> -> Count pets in the world
- /pet despawnall -> Despawn all the pets. Players are still able to respawn them using /pet here
- /pet kill <player> -> Kill player's pet
- /pet killall -> Kill all the pets on the server
- /pet delete <petOwnerName> -> Permanently delete target's pet
- /pet forcerespawn <petOwnerName> -> Respawn the pet ignoring respawn cooldown
- /pet buypet <petType> -> Open the confirm gui to buy that pet. This command was designed to be executed throw NPCs.
Permissions
Main gui:
Confirm Gui:
This is the default appearance:
Signs are fully customizable from the configuration files!
Learn more reading the wiki page
Files always updated: https://github.com/SpaicyGaming/UpgradablesPets
Code:
######################
# #
# UpgradablesPets Plugin #
# developed by SpaicyGaming #
# #
#######################
Storage:
# file - mysql
type: file
# MySQL Credentials
credentials:
hostname: localhost
database: UpgradablesPets
# Default MySQL port: 3306
port: 3306
username: root
password: password
# MySQL Table prefix
tablePrefix: 'UP_'
MainSettings:
currency: "$"
spawnPetAtJoin: true
babyPets: true
petName:
# %owner% => Pet owner name
# %name% => Pet name (default names are in the next section)
# %pet_lvl% => Pet level
# %maxHealth% => Pet max health value
# %maxHealthLvl% => Pet max health level
format: "&b%owner%'s &6%name% &c(lvl.%pet_lvl%)"
maxLength: 25
# These words can't be used in pet's name (Bypass permission: upgradablespets.rename.bypassbl)
blacklistedWords:
- fuck
- whateveryouwant
showPetHereMsg: true
showPetAwayMsg: true
# Pet respawn delay in minutes
petRespawnDelay: 1
# Open gui on right click on pet
openGuiOnRightClick: true
# Open the gui on '/pet'
openGuiOnSlashPet: false
# Remove all potion effects on '/pet away'
removeEffectsOnPetAway: true
# True -> Send a message when a player try to hiurt his own pet.
sendCantHitMessage: true
# Players without the permission 'upgradablespets.world.*' can't use their pet in these worlds
blacklistedWorlds:
- world_without_pets
Sheep:
# Prevent sheeps from eating grass
preventGrassEating: true
# All available colors (for 1.12.2): https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html
defaultColor: WHITE
# To buy a vip pet a player needs the permission "upgradablespets.vip.pet_to_lower_case". Example: "upgradablespets.vip.rainbow_sheep"
PetsCost:
Cow:
active: true
forVips: false
name: "&bCow"
price: 500
# You can add/remove all the levels you want, except the level "1"
maxHealth:
# The default max health
1:
value: 7.0
2:
value: 11.0
cost: 2000
3:
value: 15.0
cost: 5000
Pig:
active: true
forVips: false
name: "&dPig"
price: 400
maxHealth:
1:
value: 7.0
2:
value: 11.0
cost: 2000
3:
value: 15.0
cost: 5000
Sheep:
active: true
forVips: false
name: "&fSheep"
price: 450
maxHealth:
1:
value: 7.0
2:
value: 11.0
cost: 2000
3:
value: 15.0
cost: 5000
Chicken:
active: true
forVips: false
name: "&6Chicken"
price: 600
maxHealth:
1:
value: 7.0
2:
value: 11.0
cost: 2000
3:
value: 15.0
cost: 5000
Ocelot:
active: true
forVips: false
name: "&aOcelot"
price: 700
maxHealth:
1:
value: 10.0
2:
value: 15.0
cost: 2000
3:
value: 20.0
cost: 5000
Slime:
active: true
forVips: false
name: "&3Slime"
price: 650
maxHealth:
1:
value: 7.0
2:
value: 11.0
cost: 2000
3:
value: 15.0
cost: 5000
Wolf:
active: true
forVips: false
name: "&7Wolf"
price: 500
maxHealth:
1:
value: 7.0
2:
value: 11.0
cost: 2000
3:
value: 15.0
cost: 5000
Mushroom_cow:
active: true
forVips: false
name: "&cMushroom Cow"
price: 800
maxHealth:
1:
value: 8.0
2:
value: 13.0
cost: 3000
3:
value: 17.0
cost: 8000
Silverfish:
active: true
forVips: false
name: "&7Silverfish"
price: 1000
maxHealth:
1:
value: 5.0
2:
value: 11.0
cost: 4500
3:
value: 15.0
cost: 10000
Rainbow_sheep:
active: true
forVips: false
name: "&5Ra&6in&3bow &cSh&beep"
price: 2000
maxHealth:
1:
value: 12.0
2:
value: 15.0
cost: 8000
3:
value: 20.0
cost: 14000
#
# POTIONS EFFECTS
# YOU CAN DELETE AND ADD LEVELS
# the cost MUST be a natural number greater than 0
PotionsEffects:
# How many levels will be added to the pet level for each effects upgrade bought
increasePetLevel: 5
speed:
active: true
levelsCosts:
1: 300
2: 600
3: 1000
4: 2000
regeneration:
active: true
levelsCosts:
1: 500
2: 800
3: 1200
4: 2000
fire_resistance:
active: true
levelsCosts:
1: 200
2: 500
3: 600
4: 1000
night_vision:
active: true
levelsCosts:
1: 1000
increase_damage:
active: true
levelsCosts:
1: 600
2: 1000
3: 2100
invisibility:
active: true
levelsCosts:
1: 2000
water_breathing:
active: true
levelsCosts:
1: 1500
### DO NOT TOUCH ###
ConfigVersion: 2.0
Code:
Prefix: "&7[&bUpgradablesPets&7]"
HelpMenu:
header: "&7&m-+-+-+-&r &c&lUpgradablesPets &7&m-+-+-+-"
footer: " &c&m-----+--+-----"
users:
- ""
- "&b/pet help &7-> &6Show subcommands"
- "&b/pet gui &7-> &6Open the Gui"
- "&b/pet name <name> &7-> &6Rename your pet"
- "&b/pet here &7-> &6Teleport your pet to your location"
- "&b/pet away &7-> &6Despawn your pet"
- "&b/pet delete &7-> (!) Permanently delete your pet"
- ""
staff:
- "&7&m-+-+-+-&r &cStaff Cmds &7&m-+-+-+-"
- "&b/pet count &7-> Count all pets in the server"
- "&b/pet despawnall &7-> Despawn all pets"
- "&b/pet killall &7-> Kill all pets"
- "&b/pet delete <player> &7-> Permanently delete player's pet"
- ""
## GUIs ##
BuyPetsGui:
title: "&b&lBuy a Pet"
lores:
- ""
- "&ePrice: %price%"
- "&eHealth: %health%"
- "&aClick to buy"
MainGui:
title: "&c&lPets"
infoItem:
name: "&b%petname%&r's info"
lores:
- ""
- "&cPet Level: &7%level%"
- "&cPet Max Health: &7%health% HP"
- "&cType: &7%type%"
petHereItem:
name: "&fTeleport here %petname%"
lores:
- ""
- "&cTeleport here your pet"
petAwayItem:
name: "&fDespawn %petname%"
lores:
- ""
- "&cTeleport your pet away"
maxHealthItem:
name: "&bPet Max Health"
lores:
- ""
- "&aCurrent max health: &7%currMaxHealth%"
- "&aCurrent level: &7%currLevel%"
- ""
- "&aNext level cost: &7$%nextLevelCost%"
- "&aNext level max health: &7%nextMaxHealth% HP"
- "&cClick to upgrade!"
maxLevelReached:
- ""
- "&cYou reached the max health level &7(%currLevel%)"
potions:
# PlaceHolders:
# %effect% => Effect name
# %price% => Effect price
# %current_lvl% => Current effect level
# %next_lvl% => The next effect level
# %max_lvl% => The effect max level
name: "&b%effect% &clvl.%current_lvl%"
lores:
- ""
- "&ePrice: &7$%price%"
- "&aCurrent Level: &7%current_lvl%"
- "&aNext Level: &7%next_lvl%"
- "&aMax Level: &7%max_lvl%"
maxLevelLores:
- ""
- "&bYou have maxed the %effect%&r&b effect"
- "&aCurrent Level: &7%current_lvl%"
ConfirmGui:
title: '&aConfirm Purchase'
# Buy potion effect
potionPurchaseItem:
title: "&aConfirm Effecet Purchase"
name: "&6Buy %effect%&r &6Effect &clvl.%lvl%"
lores:
- ""
- "&cCurrent lvl: &7%lvl%"
- "&aPrice: &7%cost%"
# Buy pet max health
maxHealthUpgradeItem:
title: "&aConfirm Health Purchase"
name: "&6Buy MaxHealth &c%nextMaxHealth% &7(level %nextLevel%)"
lores:
- ""
- "&cCurrent Level: &7%currLevel%"
- "&aPrice: &7$%cost%"
buyItem:
name: "&aBuy!"
lores:
- ""
- "&aClick to buy"
backItem:
name: "&4Cancel"
lores:
- ""
- "&cClick to exit"
# EFFECTS NAMES
Effects:
speed: "&bSpeed"
regeneration: "&dRegeneration"
fire_resistance: "&cFire Resistance"
night_vision: "&9Night Vision"
increase_damage: "&aStrength"
invisibility: "&7Invisibility"
water_breathing: "&3Water Breathing"
fast_digging: "&6Haste"
#
# MESSAGES
#
Alerts:
hasNotPet: "&cYou don't have a pet"
notEnoughtMoney: "&cSorry, you don't have enought money!"
alreadyHavePet: "&cYou already have a pet!"
petHere: "&aYour pet has been teleported to your location!"
petAway: "&cYour pet has been teleported away!"
petDie: "&cYour pet died"
petIsDeath: "&cYour pet is death, it will respawn in %delay% minute(s)."
petRespawned: "&aYour pet has been respawned!"
petKilled: "&cYou killed %owner%'s pet!"
petKilledbyPlayer: "&cYour pet has been killed by %killer%!"
cantHitOwnPet: "Don't hurt your pet!"
blacklistedWorldCmd: "&cI'm sorry, pets are disabled in this world."
petBought: "&aYou bought a %pet%&r for &6%cost%"
potEffectBought: "&aYou bought &6%effect%&r effect for &b$%cost%"
maxHealthBought: "&aYou bought pet max health level &b%level% &7(%HP% HP) &afor &b$%cost%"
invalidPetName: "&cInvalid pet name! It cannot be longer than %max_chars% characters."
containsBlWord: "&cYou can't use the word &6'{bl_word}' &cin your pet's name!"
petRenamed: "&aPet correctly renamed! Current name: %pet_name%"
effectMaxed: "&cThere are no more available levels, Max level reached"
healthMaxed: "&cYou have reached the max level!"
petDeleted: "&aYou deleted your pet!"
petDeletedByOthers: "&cYour pet has been deleted by a server administrator!"
permissions:
noPerms: "&cSorry, you don't have enought permissions"
noChangePerms: "&cYou don't have the permissions to change your pet!"
noKillallPerms: "&cYou don't have the permissions to kill all the pets"
noDeletePerms: "&cYou don't have the permissions to delete you pet"
noCountPerms: "&cYou don't have the permissions to count all online pets"
noRenamePerms: "&cYou don't have the permissions to rename your pet!"
noRenameFormatPerms: "&cYou don't have the permissions to use this chat format in pet's name"
noRenameColorPerms: "&cYou don't have permissions to use color codes in pet's name!"
noVip: "&cYou don't have the permission to buy the pet %pet%&c, it's only for vips!"
staff:
noPetOthers: "&cThe specified player doesn't own a pet!"
playersCmd: "&cSorry, this command can be executed only by player."
petsKilledCounter: "&b%count% &6pets have been killed!"
petsCounter: "&6There are &b%count% &6pets online."
petsDespawned: "&aYou have despawned all pets!"
petDeletedOthers: "&aYou deleted %target%'s pet!"
## Do not touch ##
LangVersion: 2.0
Placeholders Wiki
- Download the latest "UpgradablesPets" plugin version and Vault/TokenEnchant.
- Drop them into your /plugins/ folder.
- Restart your server.
- Configure the messages, GUIs and config.yml in the folder "UpgradablesPets".
- Restart your server again.
- Enjoy your pets!
- You are over the age of 18 OR have parental permission.
- You have authorization to use the debit/-Redacted- and/or paypal account.
- I retain all rights and do not permit distribution, reproduction, or derivare works.
- The software is provided as it is, without any warranties on its functionality nor customer support.
- Refunds/chargebacks are prohibited, as one does not have a right to get a refund for such digital item as it has been used.
- You will not chargeback, dispute, reverse any payments.
- You agree to everything listed above.
If you can't or you don't want to pay with paypal, you can pay it with paysafecard! PM me.
Did you find a bug?
Do you want a new feature?
Please, do not post your bugs in the review section, use the issue section
Are you about to leave a review?
Great! If it includes criticism, please Report bugs and errors HERE