((HELP)) Animated Menus | Only buy once ((HELP))

Status
This thread has been locked.

YourPanda

Retired Moderator
Supreme
Feedback score
34
Posts
3,287
Reactions
1,310
Resources
0
Hi, I am setting up a custom Animated Menu for my server, however here is my issue...

I want it to be that if a player buys something once, they will NOT be able to get it again, and it will either say "Purchased", or simply just not let them buy it and give the error message in chat of "You already purchased this upgrade".

If anyone knows how I can do this, please let me know!

For Orochimaru sake... The plugin I am using is "Animated Menus".

Best Regards,
YourPanda
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

YourPanda

Retired Moderator
Supreme
Feedback score
34
Posts
3,287
Reactions
1,310
Resources
0
You could give the player a permission on purchase and check if they have the permission.
So if they have (x) permission; it won’t let them purchase it again.
For example: if {player} has {permission} allow them to purchase.


That’s the only way to do it without custom plugins.
On purchase can I habe it remove the permission to buy it?
 

YourPanda

Retired Moderator
Supreme
Feedback score
34
Posts
3,287
Reactions
1,310
Resources
0
Not sure. I'll have to look into it a bit more. I feel like there is something I can do with Java skript.
 

YoloSanta

Bot & Plugin Developer
Supreme
Feedback score
18
Posts
884
Reactions
374
Resources
0
Add them to a config, the players would be the ones who have already purchased. The purchased item would be the item in the menu

<purchased-item>
- <player1>
- <player2>
- etc
 

frxq

Developer
Supreme
Feedback score
27
Posts
479
Reactions
187
Resources
3
if it was a kit menu for example, give the group purchase.kits.name. when they buy add add -purchase.kits.name, and give them purchased.kits.name, use left click to buy and right click to use it
 

YourPanda

Retired Moderator
Supreme
Feedback score
34
Posts
3,287
Reactions
1,310
Resources
0
if it was a kit menu for example, give the group purchase.kits.name. when they buy add add -purchase.kits.name, and give them purchased.kits.name, use left click to buy and right click to use it
So basically make the first command ran giving them the actual upgrade. Then run a second command to remove the permission needed to buy it?
 

frxq

Developer
Supreme
Feedback score
27
Posts
479
Reactions
187
Resources
3
So basically make the first command ran giving them the actual upgrade. Then run a second command to remove the permission needed to buy it?
is this for skyblock by any chance? and yes
 
Status
This thread has been locked.
Top