((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
then why not use deluxemenus :c
Because I prefer Animated Menu's.. It's literally the same thing. I am just trying to get it to block players from buying stuff more than once and wasting their money.[DOUBLEPOST=1522504003][/DOUBLEPOST]Items:
Code:
- X: 6
  Y: 2
  Material:
    1: 'FEATHER'
  Name:
    1: '&e&lFly'
  Price: 7500000
  Price-Message: '&c&lERROR! &8- &7You need $7,500,000 to buy the Fly Perk!'
  Permission: 'fly.use'
  Permission-Message: '&c&lERROR! &8- &7You need the permission node &efly.use&7!'
  Lore:
    - '&7You can buy this command'
    - '&7so you have the ability to'
    - '&7fly in game!'
    - '&7'
    - '&c&lCOST: &7$7,500,000'
  ## Commands to be ran if player has enough money and permission
  Commands:
    - 'console: pex user %player_name% add essentials.fly'
    - 'message: &e&lCONGRATS! &8- &7You just bought the &e&l/Fly Command&7!'
    - 'console: pex user %player_name% remove fly.use'


After adding in the permissions to remove the fly.use it still let me purchase it multiple times.. I am simply trying to make it so that I can buy /nick once and then not anymore.
 
Last edited:

frxq

Developer
Supreme
Feedback score
27
Posts
479
Reactions
187
Resources
3
Because I prefer Animated Menu's.. It's literally the same thing. I am just trying to get it to block players from buying stuff more than once and wasting their money.[DOUBLEPOST=1522504003][/DOUBLEPOST]Items:
Code:
- X: 6
  Y: 2
  Material:
    1: 'FEATHER'
  Name:
    1: '&e&lFly'
  Price: 7500000
  Price-Message: '&c&lERROR! &8- &7You need $7,500,000 to buy the Fly Perk!'
  Permission: 'fly.use'
  Permission-Message: '&c&lERROR! &8- &7You need the permission node &efly.use&7!'
  Lore:
    - '&7You can buy this command'
    - '&7so you have the ability to'
    - '&7fly in game!'
    - '&7'
    - '&c&lCOST: &7$7,500,000'
  ## Commands to be ran if player has enough money and permission
  Commands:
    - 'console: pex user %player_name% add essentials.fly'
    - 'message: &e&lCONGRATS! &8- &7You just bought the &e&l/Fly Command&7!'
    - 'console: pex user %player_name% remove fly.use'


After adding in the permissions to remove the fly.use it still let me purchase it multiple times.. I am simply trying to make it so that I can buy /nick once and then not anymore.
so give a user group fly.purchase, then on purchase add -fly.purchase and fly.use to the user himself.
 
Last edited:

YourPanda

Retired Moderator
Supreme
Feedback score
34
Posts
3,287
Reactions
1,310
Resources
0
so give a user group fly.purchase, then on purchase add -fly.purchase and fly.use to the user himself.
Ah, thanks! I got it working now.
 

Emissions

https://www.liammartin.site/
Supreme
Feedback score
21
Posts
934
Reactions
154
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
I don't know how to help with this, BUT what I do know is seriously use DeluxeMenus and just use click requirements.
 
Status
This thread has been locked.
Top