So as the title states this update allows for much more customization of the DailyBonus menu. With this update comes a lot of changes that must be made in your rewards.yml and config.yml. The first thing to know is that the reward item materials have moved from the config.yml to the rewards.yml and can be custom for each reward. Also you can have a customized lore (the entire lore now) for each reward display type (default, received, pending). Lastly you can specify if you want an enchantment glow on each item as well.
Here is an example of a newly defined reward:
Code (Text):
rewards:
'0':
value: 0
default_item: COAL_BLOCK;%amount%;0
default_name: '&cReward #%amount%'
default_lore:
- '&7Come back every day to'
- '&7receive evetter rewards!'
- ''
- '&e&lReward:'
- '&f- $5000'
received_item: EMERALD_BLOCK;%amount%;0
received_name: '&aReward #%amount%'
received_lore:
- '&7Keep up the streak to receive'
- '&7even betards!'
- ''
- '&a&lCompleted!'
pending_item: GOLD_BLOCK;%amount%;0
pending_name: '&eReward #%amount%'
pending_lore:
- '&7Come back tomorrow to receive'
- '&7this reward!'
- ''
- '&e&lReward:'
- '&f- $5000'
pending_glow: true
actions:
- '[Message] &aYou have received a daily bonus of $5000!'
- '[VaultGive] 5000'
permission_actions:
- '[Message] &aYou have received a daily bonus of $10000!'
- '[VaultGive] 10000'
If you are running a MySQL based connection using the receivers their rewards.yml files will have to be changed as well to properly work and display the items.
In this update I also changed how the items were obtained in the plugin to a more efficient asynchronous method.
If you have any bugs to report, questions, or suggestions be sure to let me know! Reporting bugs specifically should be done via PM with an error log and a description of how the issue occurred.