1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Skript Commands Not Working

Discussion in 'Skript' started by Creepermonst, Oct 30, 2021.

Thread Status:
Not open for further replies.
  1. Creepermonst

    Creepermonst Member

    Joined:
    Mar 18, 2021
    Messages:
    2
    Likes Received:
    0
    Yesterday I tried to code a few commands in skript but the commands do not show up, i have 0 errors and the code should work.

    Code (Text):
    1. command /shop:
    2.     permission: skript.shop
    3.     description: opens a server-wide shop.
    4.     trigger:
    5.         open virtual chest inventory with size 3 named "Shop" to player
    6.         format gui slot (all integers between 0 and 9) of player with gray stained glass pane named " "
    7.         format gui slot 10 of player with oak log named "&l&6Gens" to run:
    8.             open virtual chest inventory with size 5 named "&l&6Gens" to player
    9.             format gui slot (all integers between 0 and 44) of player with gray stained glass pane named " "
    10.             format gui slot 22 of player with coal block named "&8&lCoal Gen" to run:
    11.                 if {bal::%uuid of player%} is greater than 500:
    12.                     remove 500 from {bal::%uuid of player%}
    13.                     give {genlevel::1} named "&f%genname(1)% Gen" with lore "&7Tier %toRoman(1)% &7Gen" to player
    14.                 else:
    15.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    16.         format gui slot 11 of player with hopper named "&l&5Misc." to run:
    17.             open virtual chest inventory with size 4 named "&l&5Miscellaneous" to player
    18.             format gui slot (all integers between 0 and 35) of player with gray stained glass pane named " "
    19. #water bucket
    20.             format gui slot 9 of player with water bucket named "&1&lWater Bucket" with lore "&aCost: &c750" to run:
    21.                 if {bal::%uuid of player%} is greater than 750:
    22.                     remove 750 from {bal::%uuid of player%}
    23.                     give water bucket named "&1&lWater Bucket" to player
    24.                 else:
    25.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    26. #hopper
    27.             format gui slot 10 of player with hopper named "&7&lHopper" with lore "&aCost: &c5000" to run:
    28.                 if {bal::%uuid of player%} is greater than 5000:
    29.                     remove 5000 from {bal::%uuid of player%}
    30.                     give hopper to player
    31.                 else:
    32.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    33. #chest
    34.             format gui slot 11 of player with chest named "&6&lChest" with lore "&aCost: &c500" to run:
    35.                 if {bal::%uuid of player%} is greater than 500:
    36.                     remove 500 from {bal::%uuid of player%}
    37.                     give chest named "&6&lChest" to player
    38.                 else:
    39.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    40. #name tag
    41.             format gui slot 12 of player with nametag named "&6&lName Tag" with lore "&aCost: &c2000" to run:
    42.                 if {bal::%uuid of player%} is greater than 2000:
    43.                     remove 2000 from {bal::%uuid of player%}
    44.                     give nametag named "&6&lName Tag" to player
    45.                 else:
    46.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    47. #lava
    48.             format gui slot 13 of player with lava bucket named "&c&lLava Bucket" with lore "&aCost: &c750" to run:
    49.                 if {bal::%uuid of player%} is greater than 750:
    50.                     remove 750 from {bal::%uuid of player%}
    51.                     give lava bucket named "&c&lLava Bucket" to player
    52.                 else:
    53.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    54. #Soul Sand
    55.             format gui slot 14 of player with soul sand named "&7&lSoul Sand" with lore "&aCost: &c200" to run:
    56.                 if {bal::%uuid of player%} is greater than 200:
    57.                     remove 200 from {bal::%uuid of player%}
    58.                     give soul sand named "&7&lSoul Sand" to player
    59.                 else:
    60.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    61. #enchant table
    62.             format gui slot 15 of player with enchanting table named "&b&lEnchanting Table" with lore "&aCost: &c6000" to run:
    63.                 if {bal::%uuid of player%} is greater than 6000:
    64.                     remove 6000 from {bal::%uuid of player%}
    65.                     give enchanting table named "&b&lEnchanting Table" to player
    66.                 else:
    67.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    68. #anvil
    69.             format gui slot 16 of player with anvil named "&7&lAnvil" with lore "&aCost: &c2000" to run:
    70.                 if {bal::%uuid of player%} is greater than 2000:
    71.                     remove 2000 from {bal::%uuid of player%}
    72.                     give anvil named "&7&lAnvil" to player
    73.                 else:
    74.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    75. #bookshelf
    76.             format gui slot 17 of player with bookshelf named "&3&lBook Shelf" with lore "&aCost: &c200" to run:
    77.                 if {bal::%uuid of player%} is greater than 200:
    78.                     remove 2000 from {bal::%uuid of player%}
    79.                     give bookshelf named "&3&lBook Shelf" to player
    80.                 else:
    81.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    82. #book
    83.             format gui slot 18 of player with book named "&3&lBook" with lore "&aCost: &c100" to run:
    84.                 if {bal::%uuid of player%} is greater than 100:
    85.                     remove 100 from {bal::%uuid of player%}
    86.                     give book named "&3&lBook" to player
    87.                 else:
    88.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    89. #xp bottle
    90.             format gui slot 19 of player with experience bottle named "&3&lXP &b&lBottle" with lore "&aCost: &c750" to run:
    91.                 if {bal::%uuid of player%} is greater than 750:
    92.                     remove 750 from {bal::%uuid of player%}
    93.                     give experience bottle named "&3&lXP &b&lBottle" to player
    94.                 else:
    95.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    96. #beacon
    97.             format gui slot 19 of player with beacon named "&b&lBeacon" with lore "&aCost: &c20000" to run:
    98.                 if {bal::%uuid of player%} is greater than 20000:
    99.                     remove 20000 from {bal::%uuid of player%}
    100.                     give beacon named "&b&lBeacon" to player
    101.                 else:
    102.                     send "&cSorry &4%player% &cBut You Dont Have Enogth Money" to player
    Please Help Thx
     
  2. yea rite

    yea rite Active Member

    Joined:
    Jul 11, 2021
    Messages:
    73
    Likes Received:
    5
    got this in parser.skunity.com
    Also it would be amazing if you would say what addons you are using
     

    Attached Files:

  3. TheCubPlays

    TheCubPlays Member

    Joined:
    Jun 22, 2021
    Messages:
    42
    Likes Received:
    3
    It seems like you're using skript-tuske, I suggest changing to skript-gui because skript-tuske is kinda bad. Also if your server uses 1.17 make sure that you're using the latest version of skript-gui (if you change to it) or skript-tuske. The fact that the command doesn't show up has to do with it, especially if your skript reloads really quickly because in that case it means that it is problematic, only if the skript is supposed to take some time to load of course.
     
  4. Creepermonst

    Creepermonst Member

    Joined:
    Mar 18, 2021
    Messages:
    2
    Likes Received:
    0
    well trying to switch to skript-gui fixed the problem... but skript-gui isnt working so good... ill try to fix it.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...