#Skript Gui problem

1 messages ยท Page 1 of 1 (latest)

mystic spruce
#

so define a command in skript, then on inventory click: run command

cloud knoll
#

like i want to change that

#

to

#

like a custom command

mystic spruce
#

do you want the player or console to execute it?

#

it depends on what command

cloud knoll
#

the player

#

custom command

#

it's gonna be like a /rank command

#

/rank player (rank)

mystic spruce
#

then make player execute command "<your custom command without the slash>"

#

but players shouldnt be able to change thier own rank

cloud knoll
#

permission

#

you forgot

mystic spruce
#

oh gotcha

cloud knoll
#

also

#

another thing

#

about the change gamemode to

#

can you like not set another permission to it too?

#

Like to click the grass block u need to have another permission

mystic spruce
#

well yes, depends what you want the permission to grant exactly

cloud knoll
#

not like that.

#

ok that makes sense

cloud knoll
#

@mystic spruce

#

i have another question

#

what if i only want specific ranks to click the block?

#

how do i do that

mystic spruce
#

ive never used the addon you are using for your gui, i always had an on inventory click: event

#

you have some and run: thingy

cloud knoll
#

also

#

if i wanted to run the command on someone

#

like /gui (Player)

#

how do i do that on the command?

#

@mystic spruce

mystic spruce
#

if you wanted to open that gui for that player using that command, you have to define that command

#

make your own

cloud knoll
#

noo

mystic spruce
#

easy

cloud knoll
#

like /gui (Other Player)]

#

not me

mystic spruce
#

yea

#

make a custom command

cloud knoll
#

no

#

you don't understan

#

d

mystic spruce
#

very sorry about that sire

cloud knoll
#

i want like to run a command on a player

#

like yk invadedlands rank plugin

mystic spruce
#

you run the command and then something happens to that player?

cloud knoll
#

/grant player

#

yea and stuff appears

#

that's what im trying to make

mystic spruce
#

right, which is making a custom command ๐Ÿ˜„

cloud knoll
#

off scratch

#

yea

mystic spruce
#

take this example

cloud knoll
#

ya

#

i don't understand anything ๐Ÿ’€

mystic spruce
#

you can also add cooldown: 10 seconds and aliases: /teleport above the trigger:

cloud knoll
#

k

#

ok

#

i kinda understand

mystic spruce
#

well read up on the skript docs about commands and their arguments

cloud knoll
#

<player>

mystic spruce
#

lots of info and exmaples there

cloud knoll
#

right

mystic spruce
#

thats the argument that you type out yes

cloud knoll
#

ok

#

so smthing

#

like this

mystic spruce
#

close, but instead of to player use to arg-1, referring to the first argument, which is <player>. in skript, just saying player usually means the one who executed the command or did the event

#

in my example, player and executor are interchangable

#

this is a similar thing i made, that maybe you can take inspiration form

#

that is the gui part, and this is the actual getting stuff done part

cloud knoll
#

no for this

#

i'm talking about the player who executed the command

#

is the one who's getting the gui right

#

and after that the gui is just a bunch of commands surrounding him

#

and he doesn't have op only the player that executed the command (me) .