Each player can claim a daily reward in the form of currency. The amount of currency can be set in the config.
Code (YAML):
dailyRewardMin
: 0.01
dailyRewardMax
: 0.05
mainGui:
title
: '&8ItemShop'
rows
: 4
coolDown
: 250
states:
daily-claimed:
slots
:
- 35
item:
material
: minecraft/red_dye
displayName
: '&cDaily reward'
lore
:
- '&cYou have already claimed today''s reward.'
daily:
slots
:
- 35
item:
material
: minecraft/lime_dye
displayName
: '&aDaily reward'
lore
:
- '&fYou can collect your reward.'
- '&f'
- '&eClick to collect
{min
}-
{max
} wPLN.'
enchantments:
minecraft/unbreaking
: 10
flags
:
- HIDE_ENCHANTS
account:
slots
:
- 31
item:
material
: minecraft/player_head
displayName
: '&9Profile'
lore
:
- '&f» &7You have &f
{pln
} wPLN'
If you want each player to receive the same amount of currency, set the same value for both `dailyRewardMin` and `dailyRewardMax`, and update the lore on the daily item accordingly.
![[IMG]](//proxy.spigotmc.org/4a35040afc6588a9524704ef93fbe25feb8a6cc5/68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f766972616b61697365722f766972612d77616c6c65742f726566732f68656164732f6d61737465722f696d616765732f323032352d30352d32385f31322e35322e31332e706e67)