Please help me create a plugin or skript!

Status
This thread has been locked.

BTC

Banned
Feedback score
16
Posts
356
Reactions
172
Resources
0
Hello! Can someone help me with a gui shop for spawners only so basicly there is 1 row of chest and it would cost a user (x ) amount of money and when he does not have ( x ) there will be a message saying you need ( x ) to buy this ( mob spawner ) so when the player has enough (x) to purchase a mob spawner a command will be ran called /ss give (name) (spawner) (1).
Sorry if this is confusing :p.

I can do a skript or a plugin :)
 
Type
Offering
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

YosemiteOG

Premium
Feedback score
5
Posts
1,193
Reactions
532
Resources
0
use chestcommands with eco ?

or a skript with a gui that executes a command that checks if you have (x) money and lets you buy the (x) spawner if you have right amount of money

^ will work the best imo
I could make this for you but i cba rn
 

BTC

Banned
Feedback score
16
Posts
356
Reactions
172
Resources
0
Could you?
 
Banned forever. Reason: Offering DDoS Services (https://gyazo.com/d60b2258c98accdd86ae15c05257b387)

BTC

Banned
Feedback score
16
Posts
356
Reactions
172
Resources
0
how to make console execute a command for a player?
 
Banned forever. Reason: Offering DDoS Services (https://gyazo.com/d60b2258c98accdd86ae15c05257b387)

YosemiteOG

Premium
Feedback score
5
Posts
1,193
Reactions
532
Resources
0
how to make console execute a command for a player?
command /test:
trigger:
execute console command "(command)"

"execute console command" is the expression
 

BTC

Banned
Feedback score
16
Posts
356
Reactions
172
Resources
0
I want them to run the /verify gui command so they cant close the gui until they press yes or no
 
Banned forever. Reason: Offering DDoS Services (https://gyazo.com/d60b2258c98accdd86ae15c05257b387)

Hawkk

Feedback score
0
Posts
225
Reactions
71
Resources
0
I want them to run the /verify gui command so they cant close the gui until they press yes or no
This is only for the GUI part, not the other spawner part

"on inventory close:" is the event and:
it can't be cancelled
You need SkQuery and WildSkript

So it'd work like this

Code:
#The variables you can do by yourself
command /verifygui [<text>]:
    trigger:
        if arg 1 is not set:
            if {verifygui.%player%} is not set:
                open chest with 1 rows named "Verify GUI" to player
                wait 2 ticks
                format slot 0 of player with green wool named "&aYes" to close then run "verifygui yes"
                format slot 9 of player with red wool named "&cNo" to close then run "verifygui no"
        if arg 1 is "no":
            open chest with 1 rows named "Verify GUI" to player
            wait 2 ticks
            format slot 0 of player with green wool named "&aYes" to close then run "verifygui yes"
            format slot 9 of player with red wool named "&cNo" to close then run "verifygui no"
        if arg 1 is "yes":
            #You have to fill this part out to your needs

on inventory close:
    if {verifygui.%player%} is not set:
        open chest with 1 rows named "Verify GUI" to player
 
Status
This thread has been locked.
Top