How to update to this version?
- Added spin-button-cooldown option in config.yml file. (This feature has been added before, this update just add a option to customize it)
- Fixed the issue of hook plugin item amount in prices option.
- Fixed player sometimes get 2 rewards when they click spin button too quick.
Added those contents in your config.yml file, if not, it still OK, plugin will generate a default value for new options.
YAML:# Set to -1 to disable cooldown system. spin-button-cooldown: 20
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.
How to update to this version?
- 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.
You should add those contents to config.yml:
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%%'
- Finally fixed plugin always generate new custom model data for textures that already registered custom model data for them.
- Added %display% and %amount% built-in placeholder. You can use them in commands, announcements, price placeholder and so on!
- Added new placeholder option format: placeholders.<Use Times>.
YAML:placeholders: 1: "First Spin Display" 2: "You have spined 1 time, the second time?" 3: "Good luck!"
- Now replace item can use hook plugin item.
YAML:replace: hook-plugin: Oraxen hook-item: test amount: 1
- Now display, lore, cmd option also support modify hook plugin item, like:
YAML:rewards: 1: hook-plugin: ItemsAdder hook-item: 'cosmetics:icr_cream' display: 'b5cf6Ice Cream' lore: - '&f' - '&fBackpack Cosmetics' commands: - 'lp user %player_name% permission set cosmetics.ice_cream' give-item: false amount: 1 rates: default: 1 vip: 5 rates-conditions: vip: - 'permission: group.vip'
Changelog:
How to update to this version:
- No changelog for premium version, this a fix for free version.
- You don't need to update to this version.
