Closed Sandertv closed 7 years ago
Sure, I'll work on this during my free time!
Cool. 🎉 🎉 Once you have time to work on it, it'd most likely be best to store them in MySQL with the pet's name and the owner's name. An owner can never have two pets with the same name, so that should make life easier for storing.
Added some more events which will make life easier for you to setup database stuff for the pets.
@Muqsit I'm thinking of making the inventory more vanilla like actually, but I'm not sure if the inventory like in vanilla with donkeys is possible for pets. If it is possible, I think it'd be best to just implement directly into BlockPets, because it doesn't really make sense for that in PlayerVaults :P
Nevermind, minecraft wiki ruined my dreams! ChestedHorse: 1 or 0 (true/false) - true if the horse has chests. A chested horse that is not a donkey or a mule will crash the game.
Feelsbadman.
@Sandertv you can copy code from PlayerVaults, it's open source :p I think it'll be better to implement a BlockPets exclusive inventory handler than depend on PlayerVaults.
Alright, don't worry, I will give you proper credit for it for sure though, I'll just put it above the file or something.
I got a working system, just not really safe SQL access and not async, but I'll do that later when I have time for it. Thanks for all the help, there's a note most of the code from the inventories comes from you. :)
Hey @Muqsit I'm working on a pets plugin as you probably noticed, and decided I wanted to implement per pet inventories. Instead of inventing the wheel twice I thought it would probably be best to utilize PlayerVaults in one way or another. Could you explain to me if there's a way using PlayerVaults to do this, and if so how? If not, do you think you could implement that?
Thanks in advance!