Gui not working?! wutt?! With TUske

  • 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 comminuty!

    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.

devsucs

New Member
Jul 1, 2020
5
0
1
26
Hey i was trying to make a gui execute a command but it does not work anymore it errors all over the place

soo this is my problem
Code:
command /run:
    trigger:
        create a gui with virtual chest with 3 rows named "&4Test":
            make gui slot 0 with diamond:
                send "help"
        open last gui to player
does not work for some reason while on the wiki it says it should work wiki : https://github.com/Tuke-Nuke/TuSKe/wiki/GUI-Manager#string-based-slot

but now i have it without the "send "help" "

and that works fine but it does not send and commands or does anything as shown below


Code:
command /run:
    trigger:
        create a gui with virtual chest with 6 rows named "&4Select the server":
            make gui slot 0 with diamond
        open last gui to player

what the hell is going on im soo confused PLEASE send help!
 
Probably?
Code:
make gui slot 0 with diamond to close then run:
    send "help"
nope :emoji_stuck_out_tongue:

Code:
command /run:
  trigger:
    open virtual chest inventory named "Select Server" to player
    format gui slot 0 of player with diamond block named "whatever" to close then run player command "/commandhere"

Its "format", not "make". This is a common misconception of TuSKe GUIs :emoji_grinning:
 
If you are still looking for something then here is a skript that runs without any skript addons. Special thanks to dogloverblue. This is an example. You can change what you want in it
Code:
#I have no idea how to use permissions, but you can add those later
command /punish [<offlineplayer>]:
  trigger:
    set {BannedPlayer} to arg-1
    set {_gui} to a new chest inventory with 6 row with name "Ban Gui"
    set slot 0 of {_gui} to red wool named "&ePerm Ban"
    set slot 1 of {_gui}  to green wool named "&e1 Day Ban"
    open {_gui} to player
 
on inventory click:
  if name of event-inventory is "Ban Gui":
    if index of event-slot = 0:
      cancel event
      execute console command "ban %{BannedPlayer}%" 
      Send "&eYou have perm banned &4%{BannedPlayer}%"
    if index of event-slot = 1:
      cancel event
                  # You can do what you want with this
 
Status
Not open for further replies.