Solved GUI won't close or run command.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

johnnoba

Member
Mar 8, 2020
4
1
0
The issue i'm having is i'm trying to code a gui to revive people but when i try to have it run a command after closing it wont close the gui or run the command, it also give no error code or anything just does nothing.
I'm currently using:
Spigot 1.15.2
Skript v2.4.1
Skbee v1.0.1
SkQuery v3.6.5
Skellett v1.9.8
TuSKe v1.8.2

Code:
on rightclick on witch:
    if {%targeted entity%.lazarus} is true:
        open virtual chest inventory with size 3 named "&8&lLazarus' Pit" to player
        format gui slot 18 of player with black stained glass pane named " " to do nothing
        format gui slot 19 of player with black stained glass pane named " " to do nothing
        format gui slot 20 of player with black stained glass pane named " " to do nothing
        format gui slot 21 of player with black stained glass pane named " " to do nothing
        format gui slot 22 of player with black stained glass pane named " " to do nothing
        format gui slot 23 of player with black stained glass pane named " " to do nothing
        format gui slot 24 of player with black stained glass pane named " " to do nothing
        format gui slot 25 of player with black stained glass pane named " " to do nothing
        format gui slot 26 of player with barrier block named "&cClose" to close
        set {_slot} to 0
        loop all players:
            if {dead.%loop-player%} is true:
                if {_slot} < 18:
                    set {_p} to "%loop-player%" parsed as player
                    format gui slot {_slot} of player with skull of {_p} named "&6&l%loop-player%" with lore "" to close then run sender command "lazaruspit %{_p}%"
                    add 1 to {_slot}

If anyother information is needed to help me please ask and ill provide it
 
What do you mean its running a command not any code and if u mean you cant run a command im pretty sure you can because ive done it before in older versions of skript and it says on tuske's github that you can. if you can please just clarify
[doublepost=1584608436,1584548493][/doublepost]Now fully sure what the issue was but now it seems to work fine? im so confused but its working i changed a few things around but i mean it works fine now so solved i guess
 
Status
Not open for further replies.