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.

Solved error

Discussion in 'Skript' started by dansktopgaming, Aug 20, 2020.

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

    Joined:
    Feb 15, 2017
    Messages:
    4
    Likes Received:
    0
    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 (Text):
    1.                    
    2. effect:
    3.     patterns:
    4.         open buy menu %player% %text%
    5.     trigger:
    6.         set {_player} to expression-1
    7.         set {_yaml} to expression-2
    8.         broadcast "%{_yaml}%"
    9.         open virtual chest inventory with size {BUY::GUI::%{_yaml}%::MENUSIZE} named "%{BUY::GUI::%{_yaml}%::MENUNAME}%" to {_player}
    10.         if {BUY::GUI::%{_yaml}%::MENUSIZE} is 1:
    11.             set {_n} to 0
    12.             loop 9 times:
    13.                 format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
    14.                 add 1 to {_n}
    15.         else if {BUY::GUI::%{_yaml}%::MENUSIZE} is 2:
    16.             set {_n} to 0
    17.             loop 18 times:
    18.                 format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
    19.                 add 1 to {_n}
    20.         else if {BUY::GUI::%{_yaml}%::MENUSIZE} is 3:
    21.             set {_n} to 0
    22.             loop 27 times:
    23.                 format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
    24.                 add 1 to {_n}
    25.         else if {BUY::GUI::%{_yaml}%::MENUSIZE} is 4:
    26.             set {_n} to 0
    27.             loop 36 times:
    28.                 format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
    29.                 add 1 to {_n}
    30.         else if {BUY::GUI::%{_yaml}%::MENUSIZE} is 5:
    31.             set {_n} to 0
    32.             loop 45 times:
    33.                 format gui slot {_n} of {_player} with {BUY::GUI::%{_yaml}%::FILLITEM} named " "
    34.                 add 1 to {_n}
    35.         loop {BUY::GUI::%{_yaml}%::SLOT::*}:
    36.             set {_slot} to "%loop-value%" parsed as a number
    37.             set {_item} to "%{BUY::GUI::%{_yaml}%::%loop-value%::item}%" parsed as a item
    38.             if "%{BUY::GUI::%{_yaml}%::%loop-value%::action}%" is "change menu":
    39.                 replace all " " with "" in {color::%loop-value%}
    40.                 #set {_lore} to placeholder change "%{BUY::GUI::%{_yaml}%::%loop-value%::lore}%" {_player} "%{color::%loop-value%}%"
    41.                 format gui slot {_slot} of {_player} with {_item} named "%{BUY::GUI::%{_yaml}%::%loop-value%::name}%" with lore "%{_lore}%" to run:
    42.                     open buy menu {_player} "%{BUY::GUI::%{_yaml}%::%gui-slot%::nextmenu}%"
    43.                        
     
Thread Status:
Not open for further replies.

Share This Page

Loading...