Hi!! So I have a gui shop using skript. this is the skript:
``` command /ts: trigger: open virtual chest inventory with size 3 named "&c&lToken Shop" to player format gui slot 1 of player with shiny diamond named "&4&lVIP Rank" with lore "&fCost: 100 tokens" to run: if balance of player >= 100: remove 100 from balance of player execute console command "lp user %player% parent set vip" ```
As you can see you can buy a rank on my server. but how do i cancel the event if they player already has bought vip??
Question
Audehh08
Hi!! So I have a gui shop using skript. this is the skript:
```
command /ts:
trigger:
open virtual chest inventory with size 3 named "&c&lToken Shop" to player
format gui slot 1 of player with shiny diamond named "&4&lVIP Rank" with lore "&fCost: 100 tokens" to run:
if balance of player >= 100:
remove 100 from balance of player
execute console command "lp user %player% parent set vip"
```
As you can see you can buy a rank on my server. but how do i cancel the event if they player already has bought vip??
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now