Major changes to v5
This page will show all the new features and changes that have been made for v5 of SimplePets. Especially if you are updating from v4
Introduction
SimplePets v5 has been completely re-coded from the ground up, only a select few bits and pieces of code remain untouched. Since it was re-coded I was able to add some neat features that I could not add due to the code structure of current versions
Thanks to re-coding the plugin I was finally able to add a long time request, and that was to be allowed to have multiple pets spawned at the same time.
The limit of how many pets a player can have can be modified in the config.yml
file as shown below.
pet-toggles:
# The maximum number of pets a player can spawn at a time.
# This can be overridden using pet.amount.<Number>, e.g. pet.amount.1 to only allow 1 at once.
#
# Default: 3
pet-spawn-limit: 3
Pet Renaming
In the past you could only rename a pet via CHAT or the ANVIL GUI (or if you were advanced the /pet modify
command)
A total of 4 different ways to change your pets name were added, and those are CHAT, ANVIL, SIGN (Requires ProtocolLIB), and the command /pet rename <type> <name>
This can be changed in the config.yml
file
RenamePet:
# How should the player be able to modify their pets name?
# Types:
# - COMMAND (They have to use the '/pet rename' command to set the name)
# - CHAT (They have to type the name in chat)
# - ANVIL (The Anvil GUI will open and they can change the name there)
# - SIGN [REQUIRES ProtocolLib] (Will open a Sign GUI they input the name on the configured line)
# Default: ANVIL
Type: ANVIL
HEX Chat Colors
With the re-code of SimplePets, we were able to make it so HEX color codes could be used along with regular color codes.
The formatting for HEX color codes is setup like this: &#FFFFFF
Example Usage: "&7Hey have you said
&#e93b19
Hello
&#e99919
World yet?"
Customization of the Sign GUI
You can change what line the player has to use for inputting the pets name, This can be simply done by moving the {input}
placeholder to one of the 4 lines.
HEX Color Codes can NOT be used for the sign GUI
MUST have 4 lines
One line MUST have the
{input}
placeholder
rename:
sign:
# The text that will be set for the sign
# - One line MUST have {input} to mark what line the player types the pets name
# - Hex colors can NOT be used for this
# - MUST have 4 lines
lines:
- '{input}'
- '&l^^^^^^^^'
- '&9&lPlease Enter'
- '&9&lPet Name'
Last updated
Was this helpful?