Fixed an issue where the plugin would fail in versions lower than 1.17.1, because the plugin incorrectly called some code that was only available in versions 1.17.1 and above.
For users of versions lower than 1.16, we have added a new function to automatically convert Hex colors to common colors to avoid the situation where the colors of plugin messages look very strange due to calling Hex colors.
Fixed HIDE_ATTRIBUTES item flag does not work for item does not have attribute modifier in 1.20.6 and higher version.
This is a bug from Mojang and we can do nothing for this. Plugin will auto add empty attribute modifier if you add hide attributes flag to solve this problem.
Added Standard Localized Item Name Translate feature.
Due to the fact that the Minecraft server does not store client language files, the plugin cannot know the name of the item you hold displayed on your client. Therefore, in most scenarios where the item name is displayed, we directly display its English name. Now this new feature will automatically download the client language file and translate your item name.
You have to setup this feature first to enable this feature.
Removed check-full-drop option in config.yml. Plugin now will always try drop reward items when player's inventory is full.
Added new item price mode: ItemFormat, instead of require item must 100% equal than selled item, if 2 item's Item Format is same, we will also consider the item can be used. You can consider it as: fuzzy matching.
Fixed item price does not work issue since 3.0.0.
Renamed use-uuid-save-data option to data-save-mode.
Removed double hook item check. Becuase our NBT check method has been used for months and no one said it has problems, so now we remove the second hook item check way and only use NBT check method for now. This will also improve plugin performance in some case.
After version 2.8.0, the Item Format used the name option as the display name for the item. However, previous versions used the display option as the display name for the item. Now, the plugin will read both options simultaneously to avoid situations where the new version cannot recognize the corresponding custom item name after the old version configuration is loaded.
Fixed op player will lose op after using op_command action.
Now items option use ItemFormat simple version.
For SpinToWin, you can now use flags, enchants option in item option.
Cleaned the codes.
Removed /s2w updateconfigs command.
Added use-component-title option in config.yml, default to false, if set to true, we will use TextComponent in the GUI title.
Added empty_amount option in UI configs, can set the checked empty amount in auto_close_when_empty and auto_reset_when_empty amount, default to 0, set to 13 to make the UI can reset after each spin.
Added font option in UI configs, can set the GUI title font.
Now if plugin find your language file missing some keys, plugin will auto generate default value for it so you no need to manually update langauge file anymore.
Now message.yml can be deleted after first load, if you delete it, plugin will generate new language file after next load. (not reload)
New hook item price rework! Now SpinToWin will use fuzzy matching item NBT method to check item price. This means:
Plugin have dynamic lore (like EcoItems use PlaceholderAPI in lore), stat (like MMOItems) will 100% support, your dynamic items won't get ignored by price system anymore just becuase they have different lore, NBT or so on.
This new check system is in BETA, if players fail to be checked by this new price system, old price system will still work for them, this means plugin now have 2 ways check plugin item price!
Added a "start-apply" option for each price selection. Now, whenever a player spins in the UI, a "spin times" value is recorded. Our plugin offers different prices based on the number of spins, and previously, you could only specify the range of spins for a price to take effect using the "apply" option. With the new "start-apply" option, you can set a range with just the starting value, without an endpoint. For example, the price will remain effective after the 5th spin.
Introduced the "last_reward_times" option in the UI configuration. In the past, when the "reserve" option was enabled, players couldn't claim the last reward because the previously claimed rewards wouldn't disappear. Now, you can use this value to allow players to receive the last reward after exceeding a certain number of spins.
Reverted the mechanism from the previous version where, if the number of rewards in the UI exceeded the number of UI slots, it would randomly select a suitable number of rewards. This mechanism now only takes effect when the "reserve" option is enabled. Otherwise, the plugin will always select a fixed number of rewards, ignoring any extras.
Now plugin support you set unlimited rewards for a spin UI, if your rewards amount is more than reward slots amount, plugin will randomly pick the rewards. (Random picked rewards won't saved, this means players can just reopen the spin UI to get new random pick)
Those changes are premium version only.
Added EcoBits plugin prices hook.
Added eco item prices hook.
Fixed EcoItems item prices hook. (You MUST update your EcoItems plugin to latest version because it's author changed its API)
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.
Fixed color codes does not work well at placeholder option in UI prices configs.
Fixed plugin still generate new models for Expansion Pack frames and icons even they are already exists.
How to update to this version? Added those contents in your config.yml file, if not, it still OK, plugin will generate a default value for new options.
Code (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.
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%%'
Added auto copy resource pack features. Default support ItemsAdder plugin, you can set your own copy rule to support other plugins!
How to update to this version?
Added those contents in your config.yml file:
Code (YAML):
auto-copy-resourcepack:
enabled: true
# If you are using Oraxen, please change this to Oraxen. # Other plugins is OK, you just need put correct path in path option. plugin: "ItemsAdder" # If you are using Oraxen, please change this to "/pack/assets". path: "/contents/flipcard/resourcepack/"
Fixed plugin will fail to copy resourcepack when you are first use auto-copy-resourcepack feature.
Plugin will auto add white color code to your GUI title if you are try using ItemsAdder or Oraxen image symbol, placeholder.
Added history_gui and history_size_dynamic option in UI config, this will help you edit history GUI!
How to update to this version?
Just copy to your plugins folder. (if you need use 2 new histroy gui options, just add them by yourself, plugin won't get error if you didn't add the 2 options)
Added auto copy resource pack features. Default support ItemsAdder plugin, you can set your own copy rule to support other plugins!
How to update to this version?
Added those contents in your config.yml file:
Code (YAML):
auto-copy-resourcepack:
enabled: true
# If you are using Oraxen, please change this to Oraxen. # Other plugins is OK, you just need put correct path in path option. plugin: "ItemsAdder" # If you are using Oraxen, please change this to "/pack/assets". path: "/contents/flipcard/resourcepack/"
Breaking change: Now rates option does not support permission as sub-option, because we find YAML format does not allow use do that, now use this format:
Added UltraEconomy and CoinsEngine support. (However, free version can not use this)
Improved limit system, please view Wiki to know more.
Added %uses% and %times% built-in placeholder.
Other fixes and improves.
Added permission based rate system!
In this system, rewards rate is based on player permission, you can set different reward rate for VIP players or MVP players.
This also can be a check, if players already have VIP rank, they won't be able to get VIP rank reward because you set this rewards rate to 0 for players who already have VIP permission.
Enjoy this update, more features will be added soon as we recode prices and rewards system in past 2.0.0 update.
Fixed vanilla item price check. (>1 amount)
Added MythicMobs v4 support. (However, free version can not use this)
Added PlaceholderAPI support in rates system. (Wow)
Added rates-conditions sub-option in rewards option.
Added announcement sub-option in rewards option.
Added times sub-option in rewards option.
Added math support in rate option.
Now rates option also support PlaceholderAPI.
Better vanilla item support for prices.
Added custom skull support.
Added apply and cost option for spin UI. (just like FlipCard)
Fixed double EcoItems hook.
Added spin limit system.
Added permission-limit-check option in config.yml, default to false, if set to true, spin limit system will be enabled.
Added new permission: spintowin.limit.<Spin UI config name>.<limits>.