This update is for Spigot/Minecraft 1.13 and 1.14, and has been compiled with Spigot API 1.14.2.
This fixes a bug with leaderboard signs:
Running the command
/trsetup reloadconfig causes each leaderboard sign entry in
signs.yml to be duplicated, meaning you could potentially end up with a lot of leaderboard sign entries in
signs.yml. There is no need to manually update the file if you do have this issue, as this update to the plugin will cache the correct information when it reads the file on server start, and write the correct info to the file the first time the server is shut down after installing this update.
I've also added the option to include a potion effect amplifer to potions and splash potions. (Thanks to ToxicSlash for the suggestion). So for example, for a SPEED potion with a duration of 30 seconds, and an amplifier of 5, it would be specified in
shop.yml as:
Code (YAML):
enchantments
:
- SPEED
#30#5
While testing this, I found it useful to log shop purchases to the console, so there is a new option to enable this feature in
config.yml:
Code (YAML):
shop:
logpurchases
: false
which if set to true will log a player's purchase (excluding doublejumps) and the cost to the console.
Change Log:
==========
- add amplifier to potions and splash potions in shop (GitHub #32)
- some improvements to the shop code such as automatically closing the shop inventory consistently
- change the default names of the example shop potions to reflect the type of potion effect
- add a config option to log shop purchases to the console (default is false) using the above name change for potions
- fix bug with leaderboard signs and "/trsetup reloadconfig"
Please report any issues found preferably on GitHub or Discord -
https://discord.gg/wFYSAS4
Thanks.