GUI "Wallpaper"

  • 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.

ItsMCB

Member
May 20, 2018
46
1
8
23
www.vexel.media
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:
options:
    wallpaper.%uuid of player%: white stained glass pane

command /warpgui:
    permission: warpgui.player
    permission message: "&cLacking permission."
    trigger:
        open chest with 3 row named "§b&lWarp" to player
        wait 1 tick
        set {_glass} to {@wallpaper.%uuid of player%} named "&f"
        set {_warp_spawn} to oak sapling named "§6Spawn"
        set {_warp_resource} to spruce sapling named "§6Resource"
        set {_warp_survival} to birch sapling named "§6Survival"
        set {_warp_rules} to paper named "§6Rules"
        set {_warp_arena} to diamond sword named "§cArena"
        set {_back} to barrier named "§cBack"
        
        
        format gui slot 11 of player with {_warp_spawn} to close then run player command "/spawn"
        format gui slot 12 of player with {_warp_survival} to close then run player command "/warp survival"
        format gui slot 13 of player with {_warp_resource} to close then run player command "/warp resource"
        format gui slot 14 of player with {_warp_rules} to close then run player command "/warp rules"
        format gui slot 15 of player with {_warp_arena} to close then run player command "/warp arena"
        format gui slot 22 of player with {_back} to close then run player command "/minepad"
        
        format gui slot 0 of player with orange wool to set {wallpaper.%uuid of player%} to "orange stained glass pane"
        format gui slot 1 of player with yellow wool to set {wallpaper.%uuid of player%} to "yellow stained glass pane"
        
        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
        stop
 
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:
options:
  {@wallpaper.%uuid of player%}: white stained glass pane
  {@wallpaper.%uuid of player%}: orange stained glass pane
  {@wallpaper.%uuid of player%}: yellow stained glass pane

command /warpgui:
    permission: warpgui.player
    permission message: "&cLacking permission."
    trigger:
        open virtual chest inventory with 3 rows named "&b&lWarp" to player
        wait 1 tick
        set {_warp_spawn} to oak sapling
        set {_warp_resource} to spruce sapling
        set {_warp_survival} to birch sapling
        set {_warp_rules} to paper
        set {_warp_arena} to diamond sword
        set {_back} to barrier
        format gui slot 11 of player with {_warp_spawn} named "&6Spawn" to run:
            make player execute command "warp spawn"
        format gui slot 12 of player with {_warp_survival} named "&6Survival" to run:
            make player execute command "warp survival"
        format gui slot 13 of player with {_warp_resource} named "&6Resource" to run:
            make player execute command "warp resource"
        format gui slot 14 of player with {_warp_rules} named "&6Rules" to run:
            make player execute command "warp rules"
        format gui slot 15 of player with {_warp_arena} to run:
            make player execute command "warp arena"
        format gui slot 22 of player with {_back} named "&cBack" to run:
            make player execute command "minepad"
        format gui slot 0 of player with orange wool to run:
            set {wallpaper.%uuid of player%} to orange stained glass pane
            make player execute command "warpgui"
        format gui slot 1 of player with yellow wool to run:
            set {wallpaper.%uuid of player%} to yellow stained glass pane
            make player execute command "warpgui"
        if {wallpaper.%uuid of player%} is not set:  
            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"
        if {wallpaper.%uuid of player%} is orange stained glass pane:
            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"
        if {wallpaper.%uuid of player%} is yellow stained glass pane:
            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:
 
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:
options:
  {@wallpaper.%uuid of player%}: white stained glass pane
  {@wallpaper.%uuid of player%}: orange stained glass pane
  {@wallpaper.%uuid of player%}: yellow stained glass pane

command /warpgui:
    permission: warpgui.player
    permission message: "&cLacking permission."
    trigger:
        open virtual chest inventory with 3 rows named "&b&lWarp" to player
        wait 1 tick
        set {_warp_spawn} to oak sapling
        set {_warp_resource} to spruce sapling
        set {_warp_survival} to birch sapling
        set {_warp_rules} to paper
        set {_warp_arena} to diamond sword
        set {_back} to barrier
        format gui slot 11 of player with {_warp_spawn} named "&6Spawn" to run:
            make player execute command "warp spawn"
        format gui slot 12 of player with {_warp_survival} named "&6Survival" to run:
            make player execute command "warp survival"
        format gui slot 13 of player with {_warp_resource} named "&6Resource" to run:
            make player execute command "warp resource"
        format gui slot 14 of player with {_warp_rules} named "&6Rules" to run:
            make player execute command "warp rules"
        format gui slot 15 of player with {_warp_arena} to run:
            make player execute command "warp arena"
        format gui slot 22 of player with {_back} named "&cBack" to run:
            make player execute command "minepad"
        format gui slot 0 of player with orange wool to run:
            set {wallpaper.%uuid of player%} to orange stained glass pane
            make player execute command "warpgui"
        format gui slot 1 of player with yellow wool to run:
            set {wallpaper.%uuid of player%} to yellow stained glass pane
            make player execute command "warpgui"
        if {wallpaper.%uuid of player%} is not set: 
            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"
        if {wallpaper.%uuid of player%} is orange stained glass pane:
            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"
        if {wallpaper.%uuid of player%} is yellow stained glass pane:
            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:
Thank you for your help! I'm having a problem with loading the code though... Here's the server error:
Code:
[ERROR] .... #!#!

[ERROR] .... #!#! [Skript] Severe Error:

[ERROR] .... #!#!

[ERROR] .... #!#! Something went horribly wrong with Skript.

[ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).

[ERROR] .... #!#! Here is full list of them:

[ERROR] .... #!#! skRayFall (https://sk.rayfall.net/) TuSKe (github.com/Tuke-Nuke/TuSKe) SkBee skUtilities (https://tim740.github.io/) MCJukebox SkQuery

[ERROR] .... #!#! We could not identify which of those are specially related, so this might also be Skript issue.

[ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.

[ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.

[ERROR] .... #!#! In that case, you will be given instruction on how should you report it.

[ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.

[ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

[ERROR] .... #!#!

[ERROR] .... #!#! Stack trace:

[ERROR] .... #!#! java.lang.ClassCastException: java.util.HashMap incompatible with java.util.WeakHashMap

[ERROR] .... #!#! at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)

[ERROR] .... #!#! at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)

[ERROR] .... #!#! at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:141)

[ERROR] .... #!#! at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)

[ERROR] .... #!#! at ch.njol.skript.lang.Condition.run(Condition.java:56)

[ERROR] .... #!#! at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)

[ERROR] .... #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)

[ERROR] .... #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:109)

[ERROR] .... #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84)

[ERROR] .... #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452)

[ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1171)

[ERROR] .... #!#! at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:417)

[ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:1098)

[ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:925)

[ERROR] .... #!#! at java.lang.Thread.run(Thread.java:813)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.14.4-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.14.4

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-91-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: format a gui slot [[long:11]] of the player with ({_warp_spawn}(as java.lang.Object) named "Spawn" >> ch.njol.skript.classes.data.DefaultConverters$13@55239b68: itemtype -> itemstack)

[ERROR] .... #!#! Current trigger: command /warpgui (simple event) (minepad.sk, line -1)

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!
 
Did you download the plugin TuSKe?
Thats what this runs on.
Sorry I didn't say that before!
 
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.
 
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.

It seems like the problem is TuSKe (if you look at this thread). It is because my server is 1.14.4?

Code:
[ERROR] .... #!#!

[ERROR] .... #!#! [Skript] Severe Error:

[ERROR] .... #!#!

[ERROR] .... #!#! Something went horribly wrong with Skript.

[ERROR] .... #!#! This issue is NOT your fault! You probably can't fix it yourself, either.

[ERROR] .... #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).

[ERROR] .... #!#! Here is full list of them:

[ERROR] .... #!#! skRayFall (https://sk.rayfall.net/) TuSKe (github.com/Tuke-Nuke/TuSKe) SkBee skUtilities (https://tim740.github.io/) MCJukebox SkQuery

[ERROR] .... #!#! We could not identify which of those are specially related, so this might also be Skript issue.

[ERROR] .... #!#! You should try disabling those plugins one by one, trying to find which one causes it.

[ERROR] .... #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.

[ERROR] .... #!#! In that case, you will be given instruction on how should you report it.

[ERROR] .... #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.

[ERROR] .... #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

[ERROR] .... #!#!

[ERROR] .... #!#! Stack trace:

[ERROR] .... #!#! java.lang.ClassCastException: java.util.HashMap incompatible with java.util.WeakHashMap

[ERROR] .... #!#! at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)

[ERROR] .... #!#! at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)

[ERROR] .... #!#! at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.execute(EffFormatGUI.java:141)

[ERROR] .... #!#! at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)

[ERROR] .... #!#! at ch.njol.skript.lang.Condition.run(Condition.java:56)

[ERROR] .... #!#! at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)

[ERROR] .... #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)

[ERROR] .... #!#! at ch.njol.skript.effects.Delay$1.run(Delay.java:109)

[ERROR] .... #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84)

[ERROR] .... #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452)

[ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1171)

[ERROR] .... #!#! at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:417)

[ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:1098)

[ERROR] .... #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:925)

[ERROR] .... #!#! at java.lang.Thread.run(Thread.java:813)

[ERROR] .... #!#!

[ERROR] .... #!#! Version Information:

[ERROR] .... #!#! Skript: 2.4.1 (latest)

[ERROR] .... #!#! Flavor: skriptlang-github

[ERROR] .... #!#! Date: 2019-12-22

[ERROR] .... #!#! Bukkit: 1.14.4-R0.1-SNAPSHOT

[ERROR] .... #!#! Minecraft: 1.14.4

[ERROR] .... #!#! Java: 1.8.0_212 (Eclipse OpenJ9 VM openj9-0.14.0)

[ERROR] .... #!#! OS: Linux amd64 4.15.0-91-generic

[ERROR] .... #!#!

[ERROR] .... #!#! Server platform: Paper

[ERROR] .... #!#!

[ERROR] .... #!#! Current node: null

[ERROR] .... #!#! Current item: format a gui slot [[long:11]] of the player with ({_warp_spawn}(as java.lang.Object) named "Spawn" >> ch.njol.skript.classes.data.DefaultConverters$13@da15d819: itemtype -> itemstack)

[ERROR] .... #!#! Current trigger: command /warpgui (simple event) (minepad.sk, line -1)

[ERROR] .... #!#!

[ERROR] .... #!#! Thread: Server thread

[ERROR] .... #!#!

[ERROR] .... #!#! Language: english

[ERROR] .... #!#! Link parse mode: DISABLED

[ERROR] .... #!#!

[ERROR] .... #!#! End of Error.

[ERROR] .... #!#!
 
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.
 
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.
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.
[doublepost=1589964123,1588418477][/doublepost]bump
 
if the issue is with tuske, you should contact the dev in the #tuske channel in the skript discord server
 
Status
Not open for further replies.