This update includes changes to the configuration file. Please read this update log carefully. Since the release of v2, we have been focusing on improving the user update experience. Therefore, despite significant changes to the configuration file, you can continue using the old file format without making any adjustments. However, we cannot guarantee that the support for the old configuration file format will be maintained in future updates.
- In this update, we have made adjustments to the settings related to adding Lore to all reward items in SpinToWin. We realized that there was a limitation where only one line of Lore could be added. Therefore, in this update, we have made the following changes:
- The options "last-reward-item-add-lore" and "common-reward-item-add-lore" have been moved from the "message.yml" file to the "config.yml" file. Additionally, these options have been changed to List type, allowing for multiple lines of Lore to be added.
- In the "config.yml" file, we have added a new option called "add-lore-at-first-or-last". This option will determine whether the added Lore should be placed at the beginning or the end.
- Previously, we were using the player's name as the data storage object, but we realized that this approach is insecure as players can change their usernames. Therefore, we have made a change and now we use the player's UUID as the storage object.
- We have added a new option called "use-uuid-save-data" in the "config.yml" file. If you wish to continue using the player's name as the storage object, please set this option to false. For users of older versions, if you have not added this option to your "config.yml" file, the plugin will assume that this option is set to false.
- Fixed PlaceholderAPI and color code does not working well in announcement option in UI configs.
- Fixed player data not saved when server stopping.
- Fixed config.yml not being reloaded with /s2w reload.
- Now plugin will close all player's spin UI when plugin is reloading or server is stopping.
- Now plugin will still try connect to MySQL database if your password is empty.
How to update to this version?
You should add those contents to config.yml:
Code (YAML):
# If set to false, we will use player name save data.
use-uuid-save-data
: true
# If set to true, we will add lore at first line.
# If set to false, we will add lore at last line.
add-lore-at-first-or-last
: false
last-reward-item-add-lore
:
- '&3
(Will obtain if
all rewards have claimed!
)'
common-reward-item-add-lore:
- '&7Rate
:
%rate%%'