Jakllp / MyPet

This is not the main project - Please visit https://github.com/MyPetORG/MyPet
https://www.spigotmc.org/resources/mypet.12725/
GNU Lesser General Public License v3.0
14 stars 8 forks source link

[Suggestion]: Different Pet-Variants through petshop #59

Closed Euphillya closed 3 years ago

Euphillya commented 3 years ago

Feature request

Axolotls always have the same variant, Give the possibility of having different axolots.

Describe the solution you'd like

Add Variant in Database

MyPet Build/Version: 3.12-RC4

Jakllp commented 3 years ago

How did you create/get the axolotls?

Euphillya commented 3 years ago

in petshop

Jakllp commented 3 years ago

The MyPet-petshop has always given you just one variant of a given pet (same with horse, parrot, rabbit etc) You can get different axolotl variants throught the /petadmin create command or other plugins.

This might be added in the future

Jakllp commented 3 years ago

This is actually already possible: https://wiki.mypet-plugin.de/setup/configurations/pet-shops.yml Under Options: "These work exaclty like the parameters for the pet create admin command." -> you can create a multiple axolotls that have different names and different variants under "option" (variants are numeric so 0-4)

Euphillya commented 3 years ago

Strangely, it doesn't work.

Jakllp commented 3 years ago

Can you send what you put into the file?

Euphillya commented 3 years ago

Yes :

      axolotl_rare:
        Name: Axolotl
        Description:
          - <green>It's a Axolotl!
        PetType: Axolotl
        EXP: 0
        Price: 1000
        Options:
            - "variant:4"
            - "name:test"
Euphillya commented 3 years ago

And by commands : image

Jakllp commented 3 years ago

I don't know what happened with the command (works perfectly for me: image ) But for the yml: For options get rid of the " So in this case:

      axolotl_rare:
        Name: Axolotl
        Description:
          - <green>It's a Axolotl!
        PetType: Axolotl
        EXP: 0
        Price: 1000
        Options:
            - variant:4

Note: The name-option does not work in the petshop as Name: already does that

Also: You can now update to 3.12-SNAPSHOT https://mypet-plugin.de/download

Euphillya commented 3 years ago

On 3.12-Snap all work

Jakllp commented 3 years ago

Nice