#Playtime Menu
1 messages · Page 1 of 1 (latest)
Ik i would have to use the placeholder from Statistics but im unsure how i would write the requirements ?
click_requirement:
requirements:
time:
type: '>='
input: '%statistic_hours_played%'
output: '10'
money:
type: 'has money'
amount: '1000'
This would check if the player has at least 10 hours played and at least 1000 money.
Tysm! This has helped a bunch....
I have some other questions tho if thats okay? :D
-
How to make a "You have already claimed this" thing appear in place of the reward they have claimed
-
How to make each reward redeemable only once
You would need to use view requirements combined with priorities.
For refference I would suggest you take a look at our example menus for kits: https://wiki.helpch.at/helpchat-plugins/deluxemenus/example-gui-menus#kitss
It is not 100% what you want but it very similar in the sense that each kit has 3 states:
locked
unlocked
claimed
I tried using this, heres my code. But it doesnt replace the first kit with the claimed kit. The way its setup is when they click the first one, it gives them a permission called group.1 but when i tell the other item that if they have this permission they see this, it doesnt work.
You need to swap priorities
This shows the 1_claimed item but I dont have that permission, so it shouldnt show?
Are you OP when testing? Because you shouldn't be
The account im trying it on isnt OP
oh waiiit i see
Ahh So it wasnt updating as i still had the menu open. So i just have to add "close" to the click commands
Thank you!!
One more thing, How would i make it so they need the previous level before unlocking the next one?
You could also use [refresh] instead of [close].
It will refresh the full menu.
ohh ty!
Well, what exactly is a level? You add it as a requirement
Hi, @scarlet veldt
One recommendation I can give you is to use a plugin specifically designed for playtime management. In my experience, when you create a lot of rewards, those types of menus can become heavy or laggy. Also, if you manage them through LuckPerms permissions, you’ll end up with a large number of individual permissions per player, which can be difficult to manage. Personally, I don’t like that approach, and that’s why I currently recommend using a plugin specifically built for this kind of functionality. That said, if this isn’t an issue for you and your current setup works well, then that’s totally fine too.