UI Conigs
Last updated
Last updated
You can find all UI configs at /plugins/SpinToWin/ui
folder. Its UI name is same as the file name in this folder. For example, ui.yml
file's <uiConfig> arg is example
.
Free version can only load 1 spin UI, premium version don't have this limit.
Here is an example of UI Conigs.
gui.title: Spin UI title name.
gui.size: Spin UI size, must be one number of 9, 18, 27, 36, 45, 54
.
history-gui.title: History GUI title name.
history-gui.dynamic-size: Whether history size is depand on claimed rewards amount or just same as gui.size
value.
slots: Reward item slots.
reserve: Whether reward can be claimed unlimited times or only one time.
auto-settings.empty-amount: How many reward left than we think this spin UI is empy.
auto-settings.reset-timer-after-first-spin: How many ticks after first spin we will auto reset data, set -1 to disable this feature.
auto-settings.reset-when-empty: Whether plugin auto reset date when this spin UI rewards all claimed.
auto-settings.close-when-empty: Whether plugin auto close UI when this spin UI rewards all claimed.
auto-settings.close-when-price-not-meet: Whether plugin auto close UI when this players are not meet next spin cost.
replace: The item of will replaced at claimed reward item slot.
frame: Frame name, see config.yml
.
show-rate: Whether to add a line of lore to the reward item to display its rate.
limits: Set the maximum times of spin UI. You must enable check-permission-limit option in config.yml file to use this feature.
limits.default: If player dont have any required permsision, they will use this limit.
limits.<Condition ID>: Players who meet this condition will use this limit. For example:
In this example, players who have test.permission permission will have 20 limits, otherwise they have only 10 limits.
button: Button configs.
button.icons: Button icon name, see config.yml
.
last-reward: The reward what will be claimed if players has claimed all normal rewards. See Rewards Option for more info.
last-reward-slot: Last reward slot.
last-reward-times: How many spin times after will you get the last reward. If not set (and I recommend you do not add this option), will get last reward after you claim all rewards in a spin UI. You must enable check-permission-limit option in config.yml to use this option.
rewards: List of normal rewards. See Rewards Option for more info.
prices: List of prices. See Prices Option for more info.
For rewards and prices option: Every of them have its ID number. All ID number should be a natural number starting from 1 and incrementing by 1. Prices ID number also mean it the number of spin times it applies, otherwise we will set it as free.