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.

GUI "Wallpaper"

Discussion in 'Skript' started by ItsMCB, Apr 25, 2020.

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

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    I'm trying to create an option that allows players to change their "wallpaper" for the Warp GUI. I can't get it to work. Can you please see what I'm doing wrong? Thanks in advance.

    Code (Text):
    1. options:
    2.     wallpaper.%uuid of player%: white stained glass pane
    3.  
    4. command /warpgui:
    5.     permission: warpgui.player
    6.     permission message: "&cLacking permission."
    7.     trigger:
    8.         open chest with 3 row named "§b&lWarp" to player
    9.         wait 1 tick
    10.         set {_glass} to {@wallpaper.%uuid of player%} named "&f"
    11.         set {_warp_spawn} to oak sapling named "§6Spawn"
    12.         set {_warp_resource} to spruce sapling named "§6Resource"
    13.         set {_warp_survival} to birch sapling named "§6Survival"
    14.         set {_warp_rules} to paper named "§6Rules"
    15.         set {_warp_arena} to diamond sword named "§cArena"
    16.         set {_back} to barrier named "§cBack"
    17.        
    18.        
    19.         format gui slot 11 of player with {_warp_spawn} to close then run player command "/spawn"
    20.         format gui slot 12 of player with {_warp_survival} to close then run player command "/warp survival"
    21.         format gui slot 13 of player with {_warp_resource} to close then run player command "/warp resource"
    22.         format gui slot 14 of player with {_warp_rules} to close then run player command "/warp rules"
    23.         format gui slot 15 of player with {_warp_arena} to close then run player command "/warp arena"
    24.         format gui slot 22 of player with {_back} to close then run player command "/minepad"
    25.        
    26.         format gui slot 0 of player with orange wool to set {wallpaper.%uuid of player%} to "orange stained glass pane"
    27.         format gui slot 1 of player with yellow wool to set {wallpaper.%uuid of player%} to "yellow stained glass pane"
    28.        
    29.         format gui slot 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 16 and 17 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 and 27 of player with {_glass} to close
    30.         stop
     
  2. FusionCore

    Supporter

    Joined:
    Apr 19, 2020
    Messages:
    44
    Likes Received:
    1
    You're using a mashup of TuSKe and Vanilla Skript GUIs so it should look more like this:
    This is the TuSKe verison btw!

    Code (Text):
    1. options:
    2.   {@wallpaper.%uuid of player%}: white stained glass pane
    3.   {@wallpaper.%uuid of player%}: orange stained glass pane
    4.   {@wallpaper.%uuid of player%}: yellow stained glass pane
    5.  
    6. command /warpgui:
    7.     permission: warpgui.player
    8.     permission message: "&cLacking permission."
    9.     trigger:
    10.         open virtual chest inventory with 3 rows named "&b&lWarp" to player
    11.         wait 1 tick
    12.         set {_warp_spawn} to oak sapling
    13.         set {_warp_resource} to spruce sapling
    14.         set {_warp_survival} to birch sapling
    15.         set {_warp_rules} to paper
    16.         set {_warp_arena} to diamond sword
    17.         set {_back} to barrier
    18.         format gui slot 11 of player with {_warp_spawn} named "&6Spawn" to run:
    19.             make player execute command "warp spawn"
    20.         format gui slot 12 of player with {_warp_survival} named "&6Survival" to run:
    21.             make player execute command "warp survival"
    22.         format gui slot 13 of player with {_warp_resource} named "&6Resource" to run:
    23.             make player execute command "warp resource"
    24.         format gui slot 14 of player with {_warp_rules} named "&6Rules" to run:
    25.             make player execute command "warp rules"
    26.         format gui slot 15 of player with {_warp_arena} to run:
    27.             make player execute command "warp arena"
    28.         format gui slot 22 of player with {_back} named "&cBack" to run:
    29.             make player execute command "minepad"
    30.         format gui slot 0 of player with orange wool to run:
    31.             set {wallpaper.%uuid of player%} to orange stained glass pane
    32.             make player execute command "warpgui"
    33.         format gui slot 1 of player with yellow wool to run:
    34.             set {wallpaper.%uuid of player%} to yellow stained glass pane
    35.             make player execute command "warpgui"
    36.         if {wallpaper.%uuid of player%} is not set:  
    37.             format gui slot 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 16 and 17 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 and 27 of player with white stained glass pane named "&f"
    38.         if {wallpaper.%uuid of player%} is orange stained glass pane:
    39.             format gui slot 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 16 and 17 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 and 27 of player with orange stained glass pane named "&f"
    40.         if {wallpaper.%uuid of player%} is yellow stained glass pane:
    41.             format gui slot 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 16 and 17 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 and 27 of player with yellow stained glass pane named "&f"
    ALSO SIDE NOTE:
    {@wallpaper.%uuid of player%} is now {wallpaper.%uuid of player%} :emoji_wink:
     
  3. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    Thank you for your help! I'm having a problem with loading the code though... Here's the server error:
    Code (Text):
    1. [ERROR] .... #!#!
    2.  
    3. [ERROR] .... #!#! [Skript] Severe Error:
    4.  
    5. [ERROR] .... #!#!
    6.  
    7. [ERROR] .... #!#! Something went horribly wrong with Skript.
    8.  
    9. [ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    10.  
    11. [ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
    12.  
    13. [ERROR] .... #!#! Here is full list of them:
    14.  
    15. [ERROR] .... #!#! skRayFall (https://sk.rayfall.net/) TuSKe (github.com/Tuke-Nuke/TuSKe) SkBee skUtilities (https://tim740.github.io/) MCJukebox SkQuery
    16.  
    17. [ERROR] .... #!#! We could not identify which of those are specially related, so this might also be Skript issue.
    18.  
    19. [ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.
    20.  
    21. [ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
    22.  
    23. [ERROR] .... #!#! In that case, you will be given instruction on how should you report it.
    24.  
    25. [ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
    26.  
    27. [ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
    28.  
    29. [ERROR] .... #!#!
    30.  
    31. [ERROR] .... #!#! Stack trace:
    32.  
    33. [ERROR] .... #!#! java.lang.ClassCastException: java.util.HashMap incompatible with java.util.WeakHashMap
    34.  
    35. [ERROR] .... #!#! at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)
    36.  
    37. [ERROR] .... #!#! at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)
    38.  
    39. [ERROR] .... #!#! at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:141)
    40.  
    41. [ERROR] .... #!#! at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)
    42.  
    43. [ERROR] .... #!#! at ch.njol.skript.lang.Condition.run(Condition.java:56)
    44.  
    45. [ERROR] .... #!#! at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
    46.  
    47. [ERROR] .... #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    48.  
    49. [ERROR] .... #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:109)
    50.  
    51. [ERROR] .... #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84)
    52.  
    53. [ERROR] .... #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452)
    54.  
    55. [ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1171)
    56.  
    57. [ERROR] .... #!#! at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:417)
    58.  
    59. [ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:1098)
    60.  
    61. [ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:925)
    62.  
    63. [ERROR] .... #!#! at java.lang.Thread.run(Thread.java:813)
    64.  
    65. [ERROR] .... #!#!
    66.  
    67. [ERROR] .... #!#! Version Information:
    68.  
    69. [ERROR] .... #!#! Skript: 2.4.1 (latest)
    70.  
    71. [ERROR] .... #!#! Flavor: skriptlang-github
    72.  
    73. [ERROR] .... #!#! Date: 2019-12-22
    74.  
    75. [ERROR] .... #!#! Bukkit: 1.14.4-R0.1-SNAPSHOT
    76.  
    77. [ERROR] .... #!#! Minecraft: 1.14.4
    78.  
    79. [ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)
    80.  
    81. [ERROR] .... #!#! OS: Linux amd64 4.15.0-91-generic
    82.  
    83. [ERROR] .... #!#!
    84.  
    85. [ERROR] .... #!#! Server platform: Paper
    86.  
    87. [ERROR] .... #!#!
    88.  
    89. [ERROR] .... #!#! Current node: null
    90.  
    91. [ERROR] .... #!#! Current item: format a gui slot [[long:11]] of the player with ({_warp_spawn}(as java.lang.Object) named "Spawn" >> [email protected]: itemtype -> itemstack)
    92.  
    93. [ERROR] .... #!#! Current trigger: command /warpgui (simple event) (minepad.sk, line -1)
    94.  
    95. [ERROR] .... #!#!
    96.  
    97. [ERROR] .... #!#! Thread: Server thread
    98.  
    99. [ERROR] .... #!#!
    100.  
    101. [ERROR] .... #!#! Language: english
    102.  
    103. [ERROR] .... #!#! Link parse mode: DISABLED
    104.  
    105. [ERROR] .... #!#!
    106.  
    107. [ERROR] .... #!#! End of Error.
    108.  
    109. [ERROR] .... #!#!
     
  4. FusionCore

    Supporter

    Joined:
    Apr 19, 2020
    Messages:
    44
    Likes Received:
    1
    Did you download the plugin TuSKe?
    Thats what this runs on.
    Sorry I didn't say that before!
     
  5. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    You did say I needed it before. I had it downloaded already and I checked that it's up to date. I'm not sure why it won't work.
     
  6. FusionCore

    Supporter

    Joined:
    Apr 19, 2020
    Messages:
    44
    Likes Received:
    1
    Is your Skript at 1.15.2?
     
  7. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    1.14.4
     
  8. You should do a debug of ALL of your skript addons.
    put ".disabled" after each and every skript addon you have (one by one, not at once) and make sure you restart the server each time you disable a skript addon.
     
  9. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    It seems like the problem is TuSKe (if you look at this thread). It is because my server is 1.14.4?

    Code (Text):
    1. [ERROR] .... #!#!
    2.  
    3. [ERROR] .... #!#! [Skript] Severe Error:
    4.  
    5. [ERROR] .... #!#!
    6.  
    7. [ERROR] .... #!#! Something went horribly wrong with Skript.
    8.  
    9. [ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    10.  
    11. [ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
    12.  
    13. [ERROR] .... #!#! Here is full list of them:
    14.  
    15. [ERROR] .... #!#! skRayFall (https://sk.rayfall.net/) TuSKe (github.com/Tuke-Nuke/TuSKe) SkBee skUtilities (https://tim740.github.io/) MCJukebox SkQuery
    16.  
    17. [ERROR] .... #!#! We could not identify which of those are specially related, so this might also be Skript issue.
    18.  
    19. [ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.
    20.  
    21. [ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
    22.  
    23. [ERROR] .... #!#! In that case, you will be given instruction on how should you report it.
    24.  
    25. [ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
    26.  
    27. [ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
    28.  
    29. [ERROR] .... #!#!
    30.  
    31. [ERROR] .... #!#! Stack trace:
    32.  
    33. [ERROR] .... #!#! java.lang.ClassCastException: java.util.HashMap incompatible with java.util.WeakHashMap
    34.  
    35. [ERROR] .... #!#! at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)
    36.  
    37. [ERROR] .... #!#! at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)
    38.  
    39. [ERROR] .... #!#! at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:141)
    40.  
    41. [ERROR] .... #!#! at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)
    42.  
    43. [ERROR] .... #!#! at ch.njol.skript.lang.Condition.run(Condition.java:56)
    44.  
    45. [ERROR] .... #!#! at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
    46.  
    47. [ERROR] .... #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    48.  
    49. [ERROR] .... #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:109)
    50.  
    51. [ERROR] .... #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84)
    52.  
    53. [ERROR] .... #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452)
    54.  
    55. [ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1171)
    56.  
    57. [ERROR] .... #!#! at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:417)
    58.  
    59. [ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:1098)
    60.  
    61. [ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:925)
    62.  
    63. [ERROR] .... #!#! at java.lang.Thread.run(Thread.java:813)
    64.  
    65. [ERROR] .... #!#!
    66.  
    67. [ERROR] .... #!#! Version Information:
    68.  
    69. [ERROR] .... #!#! Skript: 2.4.1 (latest)
    70.  
    71. [ERROR] .... #!#! Flavor: skriptlang-github
    72.  
    73. [ERROR] .... #!#! Date: 2019-12-22
    74.  
    75. [ERROR] .... #!#! Bukkit: 1.14.4-R0.1-SNAPSHOT
    76.  
    77. [ERROR] .... #!#! Minecraft: 1.14.4
    78.  
    79. [ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)
    80.  
    81. [ERROR] .... #!#! OS: Linux amd64 4.15.0-91-generic
    82.  
    83. [ERROR] .... #!#!
    84.  
    85. [ERROR] .... #!#! Server platform: Paper
    86.  
    87. [ERROR] .... #!#!
    88.  
    89. [ERROR] .... #!#! Current node: null
    90.  
    91. [ERROR] .... #!#! Current item: format a gui slot [[long:11]] of the player with ({_warp_spawn}(as java.lang.Object) named "Spawn" >> [email protected]: itemtype -> itemstack)
    92.  
    93. [ERROR] .... #!#! Current trigger: command /warpgui (simple event) (minepad.sk, line -1)
    94.  
    95. [ERROR] .... #!#!
    96.  
    97. [ERROR] .... #!#! Thread: Server thread
    98.  
    99. [ERROR] .... #!#!
    100.  
    101. [ERROR] .... #!#! Language: english
    102.  
    103. [ERROR] .... #!#! Link parse mode: DISABLED
    104.  
    105. [ERROR] .... #!#!
    106.  
    107. [ERROR] .... #!#! End of Error.
    108.  
    109. [ERROR] .... #!#!
     
  10. FusionCore

    Supporter

    Joined:
    Apr 19, 2020
    Messages:
    44
    Likes Received:
    1
    You should reload TuSKe and put it
    back into your server files, because that's
    the only logical sounding thing I have.
    It would make sense too.
     
  11. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    Reloading the plugin didn't work. I also tried removing TuSKe from the server (removed the plugin and all folder files associated with it) then reloaded the entire server. Nothing has changed.
    --- Double Post Merged, May 20, 2020, Original Post Date: May 2, 2020 ---
    bump
     
  12. if the issue is with tuske, you should contact the dev in the #tuske channel in the skript discord server
     
Thread Status:
Not open for further replies.

Share This Page

Loading...