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.

My shop skript's buyable stuff (stone, logs, etc) not showing

Discussion in 'Skript' started by Moon2288, Nov 21, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. Moon2288

    Moon2288 Member

    Joined:
    Feb 8, 2020
    Messages:
    4
    Likes Received:
    0
    Skript Version: Skript 2.51 (dev20c)
    Skript Author: Bensku
    Minecraft Version: 1.16.3
    ---
    Full Code:

    Code (Skript):
    1. command /gh:
      trigger:
      set {money::%uuid of player%} to 1000

      command /gy:
      trigger:
      set {money::%uuid of player%} to 0


      command /shop:
      trigger:
      open virtual chest inventory with size 3 named "Shop" to player
      #row 1
      format gui slot 0 of player with black stained glass pane named "&f"
      format gui slot 1 of player with black stained glass pane named "&f"
      format gui slot 2 of player with black stained glass pane named "&f"
      format gui slot 3 of player with black stained glass pane named "&f"
      format gui slot 4 of player with sunflower named "&fYou have $%{money::%uuid of player%}%"
      format gui slot 5 of player with black stained glass pane named "&f"
      format gui slot 6 of player with black stained glass pane named "&f"
      format gui slot 7 of player with black stained glass pane named "&f"
      format gui slot 8 of player with black stained glass pane named "&f"
      #row 2
      format gui slot 9 of player with gray stained glass pane named "&f"
      format gui slot 10 of player with stone bricks named "&fBlocks" to run player command "/blockshop"
      format gui slot 11 of player with orange wool named "&fColored Blocks"
      format gui slot 12 of player with white stained glass pane named "&f"
      format gui slot 13 of player with white stained glass pane named "&f"
      format gui slot 14 of player with white stained glass pane named "&f"
      format gui slot 15 of player with white stained glass pane named "&f"
      format gui slot 16 of player with white stained glass pane named "&f"
      format gui slot 17 of player with gray stained glass pane named "&f"
      #row 3
      format gui slot 18 of player with arrow named "&fGo back" to run player command "/menu"
      format gui slot 19 of player with black stained glass pane named "&f"
      format gui slot 20 of player with black stained glass pane named "&f"
      format gui slot 21 of player with black stained glass pane named "&f"
      format gui slot 22 of player with black stained glass pane named "&f"
      format gui slot 23 of player with black stained glass pane named "&f"
      format gui slot 24 of player with black stained glass pane named "&f"
      format gui slot 25 of player with black stained glass pane named "&f"
      format gui slot 26 of player with barrier named "&fClose" to close

      command /blockshop:
      trigger:
      open virtual chest inventory with size 5 named "Shop (Blocks)" to player
      wait 10 ticks
      #row 1
      format gui slot 0 of player with black stained glass pane named "&f"
      format gui slot 1 of player with black stained glass pane named "&f"
      format gui slot 2 of player with black stained glass pane named "&f"
      format gui slot 3 of player with black stained glass pane named "&f"
      format gui slot 4 of player with sunflower named "&fYou have $%{money::%uuid of player%}%"
      format gui slot 5 of player with black stained glass pane named "&f"
      format gui slot 6 of player with black stained glass pane named "&f"
      format gui slot 7 of player with black stained glass pane named "&f"
      format gui slot 8 of player with black stained glass pane named "&f"
      #row 2
      format gui slot 9 of player with gray stained glass pane named "&f"
      format gui slot 10 of player with stone named "&fStone" with lore "&7Left click to buy for &c$10" and "&7Right click to sell for &a$8" to run with "left" click:
      if {money::%uuid of player%} is above or equal to 10:
      if player has enough space for 1 stone:
      subtract 10 from {money::%uuid of player%}
      give player 1 stone
      else:
      send "&6&lSERVER &8&l| &fYou don't have enough space in your inventory!"
      else:
      send "&6&lSERVER &8&l| &fYou can't afford that!"
      format gui slot 10 of player with stone named "&fStone" with lore "&7Left click to buy for &c$10" and "&7Right click to sell for &a$8" to run with "right" click:
      if player has stone:
      remove 1 stone from player's inventory
      add 8 to {money::%uuid of player%}
      format gui slot 11 of player with oak log named "&fOak Log" with lore "&7Left click to buy for &c$10" and "&7Right click to sell for &a$8" to run with "left" click:
      if {money::%uuid of player%} is above or equal to 10:
      if player has enough space for 1 oak log:
      subtract 10 from {money::%uuid of player%}
      give player 1 oak log
      else:
      send "&6&lSERVER &8&l| &fYou don't have enough space in your inventory!"
      else:
      send "&6&lSERVER &8&l| &fYou can't afford that!"
      format gui slot 11 of player with oak log named "&fOak Log" with lore "&7Left click to buy for &c$10" and "&7Right click to sell for &a$8" to run with "right" click:
      if player has oak log:
      remove 1 oak log from player's inventory
      add 8 to {money::%uuid of player%}
      format gui slot 12 of player with white stained glass pane named "&f"
      format gui slot 13 of player with white stained glass pane named "&f"
      format gui slot 14 of player with white stained glass pane named "&f"
      format gui slot 15 of player with white stained glass pane named "&f"
      format gui slot 16 of player with white stained glass pane named "&f"
      format gui slot 17 of player with gray stained glass pane named "&f"
      #row 3
      format gui slot 18 of player with gray stained glass pane named "&f"
      format gui slot 19 of player with white stained glass pane named "&f"
      format gui slot 20 of player with white stained glass pane named "&f"
      format gui slot 21 of player with white stained glass pane named "&f"
      format gui slot 22 of player with white stained glass pane named "&f"
      format gui slot 23 of player with white stained glass pane named "&f"
      format gui slot 24 of player with white stained glass pane named "&f"
      format gui slot 25 of player with white stained glass pane named "&f"
      format gui slot 26 of player with gray stained glass pane named "&f"
      #row 3
      format gui slot 27 of player with gray stained glass pane named "&f"
      format gui slot 28 of player with white stained glass pane named "&f"
      format gui slot 29 of player with white stained glass pane named "&f"
      format gui slot 30 of player with white stained glass pane named "&f"
      format gui slot 31 of player with white stained glass pane named "&f"
      format gui slot 32 of player with white stained glass pane named "&f"
      format gui slot 33 of player with white stained glass pane named "&f"
      format gui slot 34 of player with white stained glass pane named "&f"
      format gui slot 35 of player with gray stained glass pane named "&f"
      #row 3
      format gui slot 36 of player with arrow named "&fGo back" to run player command "/shop"
      format gui slot 37 of player with black stained glass pane named "&f"
      format gui slot 38 of player with black stained glass pane named "&f"
      format gui slot 39 of player with black stained glass pane named "&f"
      format gui slot 40 of player with black stained glass pane named "&f"
      format gui slot 41 of player with black stained glass pane named "&f"
      format gui slot 42 of player with black stained glass pane named "&f"
      format gui slot 43 of player with black stained glass pane named "&f"
      format gui slot 44 of player with barrier named "&fClose" to close
    Errors on Reload:

    none

    Console Errors: (if applicable)

    It's kinda long, it happens when i open the gui with the buggy items

    Code (Skript):
    1. [17:23:21] [Server thread/ERROR]: #!#!
      [17:23:21] [Server thread/ERROR]: #!#! [Skript] Severe Error:
      [17:23:21] [Server thread/ERROR]: #!#!
      [17:23:21] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
      [17:23:21] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
      [17:23:21] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
      [17:23:21] [Server thread/ERROR]: #!#! Here is full list of them:
      [17:23:21] [Server thread/ERROR]: #!#! TuSKe v1.8.2 (github.com/Tuke-Nuke/TuSKe)
      [17:23:21] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
      [17:23:21] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
      [17:23:21] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
      [17:23:21] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
      [17:23:21] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
      [17:23:21] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
      [17:23:21] [Server thread/ERROR]: #!#!
      [17:23:21] [Server thread/ERROR]: #!#! Stack trace:
      [17:23:21] [Server thread/ERROR]: #!#! java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.WeakHashMap
      [17:23:21] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)
      [17:23:21] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)
      [17:23:21] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:141)
      [17:23:21] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)
      [17:23:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Condition.run(Condition.java:55)
      [17:23:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Conditional.walk(Conditional.java:50)
      [17:23:21] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
      [17:23:21] [Server thread/ERROR]: #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:108)
      [17:23:21] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_16_R2.scheduler.CraftTask.run(CraftTask.java:81)
      [17:23:21] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_16_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400)
      [17:23:21] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R2.MinecraftServer.b(MinecraftServer.java:1059)
      [17:23:21] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R2.DedicatedServer.b(DedicatedServer.java:349)
      [17:23:21] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R2.MinecraftServer.a(MinecraftServer.java:1007)
      [17:23:21] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:846)
      [17:23:21] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$0(MinecraftServer.java:164)
      [17:23:21] [Server thread/ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
      [17:23:21] [Server thread/ERROR]: #!#!
      [17:23:21] [Server thread/ERROR]: #!#! Version Information:
      [17:23:21] [Server thread/ERROR]: #!#! Skript: 2.5.1 (latest)
      [17:23:21] [Server thread/ERROR]: #!#! Flavor: skriptlang-github
      [17:23:21] [Server thread/ERROR]: #!#! Date: 2020-10-22
      [17:23:21] [Server thread/ERROR]: #!#! Bukkit: 1.16.3-R0.1-SNAPSHOT
      [17:23:21] [Server thread/ERROR]: #!#! Minecraft: 1.16.3
      [17:23:21] [Server thread/ERROR]: #!#! Java: 1.8.0_211 (Java HotSpot(TM) 64-Bit Server VM 25.211-b12)
      [17:23:21] [Server thread/ERROR]: #!#! OS: Windows 10 amd64 10.0
      [17:23:21] [Server thread/ERROR]: #!#!
      [17:23:21] [Server thread/ERROR]: #!#! Server platform: Spigot
      [17:23:21] [Server thread/ERROR]: #!#!
      [17:23:21] [Server thread/ERROR]: #!#! Current node: null
      [17:23:21] [Server thread/ERROR]: #!#! Current item: format a gui slot [[long:10]] of the player with ([[itemtype:stone]] named "§fStone" with lore ("§7Left click to buy for §c$10" and "§7Right click to sell for §a$8")[class java.lang.String] >> [email protected]: itemtype -> itemstack)
      [17:23:21] [Server thread/ERROR]: #!#! Current trigger: command /blockshop (simple event) (admin shop.sk, line -1)
      [17:23:21] [Server thread/ERROR]: #!#!
      [17:23:21] [Server thread/ERROR]: #!#! Thread: Server thread
      [17:23:21] [Server thread/ERROR]: #!#!
      [17:23:21] [Server thread/ERROR]: #!#! Language: english
      [17:23:21] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
      [17:23:21] [Server thread/ERROR]: #!#!
      [17:23:21] [Server thread/ERROR]: #!#! End of Error.
      [17:23:21] [Server thread/ERROR]: #!#!
    Other Useful Info:

    Addons using (including versions):
    TuSKe v1.8.2

    Troubleshooting:

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes, but no results
    What other methods have you tried to fix it? Tried lots of different fixes from a discord server but none of them work
     
  2. Ankoki

    Supporter

    Joined:
    Nov 5, 2020
    Messages:
    55
    Likes Received:
    12
    TuSke is outdated and not maintained unfortunately:/, you should try switching to vanilla , but however change line

    Code (Text):
    1. format a gui slot 10 of the player with stone named "§fStone" with lore (§7Left click to buy for §c$10" and "§7Right click to sell for §a$8"
    to

    Code (Text):
    1. format a gui slot 10 of the player with 1 stone named "§fStone" with lore (§7Left click to buy for §c$10" and "§7Right click to sell for §a$8"
    also please format your code so its not as hard on the eyes:emoji_stuck_out_tongue:, due to this i couldnt get the exact line this error was on
     
Thread Status:
Not open for further replies.

Share This Page

Loading...