More Customization, efficiency, and code clean up.
Added a way for you to customize the display of the percents for the drop rates. Add the below to your Shop.yml file. (If left out it will default to what its always been)
Code (Text):
Drop_Info:
Item:
Material: BOOK
Damage: 0
Amount: 1
Name: '&6&lMobCoins can be obtained by killing the following mobs.'
# Is placed before entity groups
Main_Colour: '&5&l'
# Is placed before entity names # <- THIS LINE CAN BE REMOVED
Secondary_Colour: '&d&l' # <- THIS LINE CAN BE REMOVED
# Is placed before drop precent # <- THIS LINE CAN BE REMOVED
Third_Colour: '&f' # <- THIS LINE CAN BE REMOVED
# %MOB% - Will be replaced with the entity name OR custom name if one is given in lang/Mobs.yml # <- ADD THIS LINE
# %RATE% - Will be replaced with the mob coins drop rate. # <- ADD THIS LINE
Percent_Format: '&d&l%MOB% - &f%RATE%%' # <- ADD THIS LINE
Added a /lang/Mobs.yml where you can create custom mob names that will be filled in when the player kills a mob and gains a mob coins, and for being displayed with the drop rate item in the shop.
I added bStats to my plugin as well See
here I would appreciate it if you didn't disable it.
On my end I did A LOT of organization with the code itself. I moved a lot of stuff around, renamed some stuff. Added more classes for handling various things. The code should now run more efficiently as well as looks cleaner on my side.