Solved error

  • 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.
Feb 15, 2017
4
0
1
21
i get this error
> [16:02:01 ERROR]: #!#!
> [16:02:01 ERROR]: #!#! [Skript] Severe Error:
> [16:02:01 ERROR]: #!#!
> [16:02:01 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
> [16:02:01 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
> [16:02:01 ERROR]: #!#! and check whether this error has already been reported.
> [16:02:01 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
> [16:02:01 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
> [16:02:01 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
> [16:02:01 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
> [16:02:01 ERROR]: #!#!
> [16:02:01 ERROR]: #!#! Stack trace:
> [16:02:01 ERROR]: #!#! java.lang.NullPointerException
> [16:02:01 ERROR]: #!#! at com.github.tukenuke.tuske.expressions.gui.ExprVirtualInv.get(ExprVirtualInv.java:80)
> [16:02:01 ERROR]: #!#! at com.github.tukenuke.tuske.expressions.gui.ExprVirtualInv.get(ExprVirtualInv.java:23)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:105)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getSingle(SimpleExpression.java:63)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.effects.EffOpenInventory.execute(EffOpenInventory.java:98)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:54)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
> [16:02:01 ERROR]: #!#! at com.btk5h.skriptmirror.skript.custom.effect.CustomEffect.invokeEffect(CustomEffect.java:45)
> [16:02:01 ERROR]: #!#! at com.btk5h.skriptmirror.skript.custom.effect.CustomEffect.walk(CustomEffect.java:28)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
> [16:02:01 ERROR]: #!#! at com.github.tukenuke.tuske.util.EffectSection.runSection(EffectSection.java:135)
> [16:02:01 ERROR]: #!#! at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.lambda$execute$1(EffFormatGUI.java:146)
> [16:02:01 ERROR]: #!#! at com.github.tukenuke.tuske.manager.gui.GUI.run(GUI.java:31)
> [16:02:01 ERROR]: #!#! at com.github.tukenuke.tuske.manager.gui.GUIManager$1.onClick(GUIManager.java:149)
> [16:02:01 ERROR]: #!#! at com.github.tukenuke.tuske.listeners.GUIListener.onEvent(GUIListener.java:57)
> [16:02:01 ERROR]: #!#! at com.github.tukenuke.tuske.manager.gui.v2.SkriptGUIEvent.check(SkriptGUIEvent.java:39)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:149)
> [16:02:01 ERROR]: #!#! at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:112)
> [16:02:01 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
> [16:02:01 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
> [16:02:01 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
> [16:02:01 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1630)
> [16:02:01 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:31)
> [16:02:01 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:9)
> [16:02:01 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
> [16:02:01 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [16:02:01 ERROR]: #!#! at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [16:02:01 ERROR]: #!#! at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
> [16:02:01 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
> [16:02:01 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
> [16:02:01 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
> [16:02:01 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
> [16:02:01 ERROR]: #!#! at java.lang.Thread.run(Thread.java:748)
> [16:02:01 ERROR]: #!#!
> [16:02:01 ERROR]: #!#! Version Information:
> [16:02:01 ERROR]: #!#! Skript: 2.2-dev25
> [16:02:01 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT
> [16:02:01 ERROR]: #!#! Minecraft: 1.8.8
> [16:02:01 ERROR]: #!#! Java: 1.8.0_262 (OpenJDK 64-Bit Server VM 25.262-b10)
> [16:02:01 ERROR]: #!#! OS: Linux amd64 4.15.0-108-generic
> [16:02:01 ERROR]: #!#!
> [16:02:01 ERROR]: #!#! Running CraftBukkit: false
> [16:02:01 ERROR]: #!#!
> [16:02:01 ERROR]: #!#! Current node: null
> [16:02:01 ERROR]: #!#! Current item: open virtual inventory to {_player}(as org.bukkit.entity.Player)
> [16:02:01 ERROR]: #!#!
> [16:02:01 ERROR]: #!#! Thread: Server thread
> [16:02:01 ERROR]: #!#!
> [16:02:01 ERROR]: #!#! End of Error.
> [16:02:01 ERROR]: #!#!


Code:
effect:
    patterns:
        open buy menu %player% %text%
    trigger:
        set {_player} to expression-1
        set {_yaml} to expression-2
        broadcast "%{_yaml}%"
        open virtual chest inventory with size {BUY::GUI::%{_yaml}%::MENUSIZE} named "%{BUY::GUI::%{_yaml}%::MENUNAME}%" to {_player}
        if {BUY::GUI::%{_yaml}%::MENUSIZE} is 1:
            set {_n} to 0
            loop 9 times:
                format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
                add 1 to {_n}
        else if {BUY::GUI::%{_yaml}%::MENUSIZE} is 2:
            set {_n} to 0
            loop 18 times:
                format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
                add 1 to {_n}
        else if {BUY::GUI::%{_yaml}%::MENUSIZE} is 3:
            set {_n} to 0
            loop 27 times:
                format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
                add 1 to {_n}
        else if {BUY::GUI::%{_yaml}%::MENUSIZE} is 4:
            set {_n} to 0
            loop 36 times:
                format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
                add 1 to {_n}
        else if {BUY::GUI::%{_yaml}%::MENUSIZE} is 5:
            set {_n} to 0
            loop 45 times:
                format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
                add 1 to {_n}
        loop {BUY::GUI::%{_yaml}%::SLOT::*}:
            set {_slot} to "%loop-value%" parsed as a number 
            set {_item} to "%{BUY::GUI::%{_yaml}%::%loop-value%::item}%" parsed as a item
            if "%{BUY::GUI::%{_yaml}%::%loop-value%::action}%" is "change menu":
                replace all " " with "" in {color::%loop-value%}
                #set {_lore} to placeholder change "%{BUY::GUI::%{_yaml}%::%loop-value%::lore}%" {_player} "%{color::%loop-value%}%"
                format gui slot {_slot} of {_player} with {_item} named "%{BUY::GUI::%{_yaml}%::%loop-value%::name}%" with lore "%{_lore}%" to run:
                    open buy menu {_player} "%{BUY::GUI::%{_yaml}%::%gui-slot%::nextmenu}%"
 
Status
Not open for further replies.