Jump to content

GUI not working.


WhenUInfectUNoob

Recommended Posts

I have a 1.16.5 server.

command /pshop:
    trigger:
        open virtual inventory with size 3 named "&9&lPrestige Shop" to player
        format gui slot 10 of player with name tag named "&d&l2X perm booster" with lore "&e10 prestige coins"

This skript isn't working. It just says Unknown Command. Reloading the skript doesn't give any errors.

I have the following skript addons on my server:
SkBee
Skellett
skript-gui
TuSKe
 

 

Edited by Iron_Kevin

At Home Reaction GIF me usually yes lazy me

 

SATURDAY 23RD OF APRIL @ 7 PM CEST (GMT+2) RELEASE OF IDLEX.MINEHUT.GG!

You can always contact me on Discord: Nice_Pro_Clicker#3053. 

Link to comment
Share on other sites

40 minutes ago, Iron_Kevin said:

I have a 1.16.5 server.

command /pshop:
    trigger:
        open virtual inventory with size 3 named "&9&lPrestige Shop" to player
        format gui slot 10 of player with name tag named "&d&l2X perm booster" with lore "&e10 prestige coins"

This skript isn't working. It just says Unknown Command. Reloading the skript doesn't give any errors.

I have the following skript addons on my server:
SkBee
Skellett
skript-gui
TuSKe
 

 

Hey so I personally don't think you should use TuSKe as it break's other plugins and is very unreliable and easily can be manipulated.

I also don't think you need skript gui, you should use vanilla gui using Skript I believe.

an example is something like this;

command /buy:
    trigger:
        set metadata tag "storegui" of player to chest inventory with 3 rows named "&9&lStore"
        set slot 0,1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25 of metadata tag "storegui" of player to gray stained glass pane named "&f "
        set slot 26 of metadata tag "storegui" of player to glowing barrier named "&4&lCLOSE"
        set slot 13 of metadata tag "storegui" of player to glowing feather named "&b&lRanks"
        open (metadata tag "storegui" of player) to player
 
on inventory click:
    if event-inventory = (metadata tag "storegui" of player):
        cancel event
        if index of event-slot is 26:
            close inventory of player
            stop
        if index of event-slot is 13:
            send ""
            send "&7If you would like to purchase a rank, please click <link:store>&9&lHERE<reset>"
            send ""
            close inventory of player
            stop
Edited by notedwtf
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...