Another stupid bug I haven't found out how to fix

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

Sphro

Member
May 28, 2017
18
0
0
20
Skript Version: Skript 2.1.2
Skript Author: Njol
Minecraft Version: 1.8

SkQuery Version: SkQuery 3.21.4
SkQuery Author: w00tmast3r

So there's this Format Slot error with SkQuery that has officially come my way to bother me and to not know how to fix regardless of how many articles and researches online i've had to dig through to see if any work. That being said, here's the error.

http://prntscr.com/i2zord

code_language.skript:
on join:
        wait a tick
        format slot 0 of the player with compass named "&a&lServer Selecter &7(Right-click)"
        teleport player to {tele.hub}

Also. I host a BungeeCord network of about 6 servers. All duplicate Skript and SkQuery .jar files. I've copied them from a proxy that suddenly knows how to comply with this skript. I'm getting this error on the Lobby/Hub, even though i'd plug it in to my Practice server and it'd work fine even though it's based off the same .jar file.
 
Format slot only works in player's open inventories (aka GUI). To set a player's slot in their hotbar (or inside their player inventory), simply do
code_language.skript:
set slot 0 of player to compass named "insert name here"
 
Do the code works fine? I thought it need 'player's current inventory'

code_language.skript:
set slot 0 of player's current inventory to compass named "..."
 
Do the code works fine? I thought it need 'player's current inventory'

code_language.skript:
set slot 0 of player's current inventory to compass named "..."

That's is true when dealing with a gui. Since he isn't trying to place the compass in a gui and rather give it directly to a player in a specific slot then he doesn't need to add "player's current inventory"
 
Do the code works fine? I thought it need 'player's current inventory'

code_language.skript:
set slot 0 of player's current inventory to compass named "..."
Did this. Then I got a CONSOLE error + "An internal error occurred while attempting to perform this command."
code_language.skript:
[17:39:15] [Server thread/INFO]: Sphro issued server command: /slot set 10
[17:39:15] [Server thread/INFO]: Sphro: /slot set 10
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[17:39:15] [Server thread/ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
[17:39:15] [Server thread/ERROR]: #!#! and check whether this error has already been reported.
[17:39:15] [Server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
[17:39:15] [Server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[17:39:15] [Server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[17:39:15] [Server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Stack trace:
[17:39:15] [Server thread/ERROR]: #!#! java.lang.ArrayIndexOutOfBoundsException: 9
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.InventoryCrafting.setItem(InventoryCrafting.java:128)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventoryCrafting.setItem(CraftInventoryCrafting.java:83)
[17:39:15] [Server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.elements.expressions.ExprItemInInventory$1.setItem(ExprItemInInventory.java:38)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.SkriptClasses$17.change(SkriptClasses.java:639)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.SkriptClasses$17.change(SkriptClasses.java:1)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.change(SimpleExpression.java:233)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:273)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:50)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand$1.call(ScriptCommand.java:220)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand$1.call(ScriptCommand.java:1)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.util.Task.callSync(Task.java:139)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:193)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:260)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:155)
[17:39:15] [Server thread/ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[17:39:15] [Server thread/ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[17:39:15] [Server thread/ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[17:39:15] [Server thread/ERROR]: #!#!     at java.lang.reflect.Method.invoke(Method.java:498)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[17:39:15] [Server thread/ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[17:39:15] [Server thread/ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[17:39:15] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Version Information:
[17:39:15] [Server thread/ERROR]: #!#!   Skript: 2.1.2
[17:39:15] [Server thread/ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[17:39:15] [Server thread/ERROR]: #!#!   Minecraft: 1.8.8
[17:39:15] [Server thread/ERROR]: #!#!   Java: 1.8.0_91
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Running CraftBukkit: false
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Current node: null
[17:39:15] [Server thread/ERROR]: #!#! Current item: set slot to [[itemtype:compass]] named "..."
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Thread: Server thread
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! End of Error.
[17:39:15] [Server thread/ERROR]: #!#!

I'm using this command to diagnose the slots I need for when people login to the hub (1st slot in hotbar):
code_language.skript:
command /slot [<text>] [<number>]:
    trigger:
        if arg-1 is not set:
            message "&cSpecify an argument"
        else if arg-1 is "set":
            set slot arg-2 of player's current inventory to compass named "..."
 
Did this. Then I got a CONSOLE error + "An internal error occurred while attempting to perform this command."
code_language.skript:
[17:39:15] [Server thread/INFO]: Sphro issued server command: /slot set 10
[17:39:15] [Server thread/INFO]: Sphro: /slot set 10
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[17:39:15] [Server thread/ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
[17:39:15] [Server thread/ERROR]: #!#! and check whether this error has already been reported.
[17:39:15] [Server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
[17:39:15] [Server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[17:39:15] [Server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[17:39:15] [Server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Stack trace:
[17:39:15] [Server thread/ERROR]: #!#! java.lang.ArrayIndexOutOfBoundsException: 9
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.InventoryCrafting.setItem(InventoryCrafting.java:128)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventoryCrafting.setItem(CraftInventoryCrafting.java:83)
[17:39:15] [Server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.elements.expressions.ExprItemInInventory$1.setItem(ExprItemInInventory.java:38)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.SkriptClasses$17.change(SkriptClasses.java:639)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.SkriptClasses$17.change(SkriptClasses.java:1)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.change(SimpleExpression.java:233)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:273)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:50)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand$1.call(ScriptCommand.java:220)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand$1.call(ScriptCommand.java:1)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.util.Task.callSync(Task.java:139)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:193)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:260)
[17:39:15] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:155)
[17:39:15] [Server thread/ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[17:39:15] [Server thread/ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[17:39:15] [Server thread/ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[17:39:15] [Server thread/ERROR]: #!#!     at java.lang.reflect.Method.invoke(Method.java:498)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[17:39:15] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[17:39:15] [Server thread/ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[17:39:15] [Server thread/ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[17:39:15] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[17:39:15] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Version Information:
[17:39:15] [Server thread/ERROR]: #!#!   Skript: 2.1.2
[17:39:15] [Server thread/ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[17:39:15] [Server thread/ERROR]: #!#!   Minecraft: 1.8.8
[17:39:15] [Server thread/ERROR]: #!#!   Java: 1.8.0_91
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Running CraftBukkit: false
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Current node: null
[17:39:15] [Server thread/ERROR]: #!#! Current item: set slot to [[itemtype:compass]] named "..."
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! Thread: Server thread
[17:39:15] [Server thread/ERROR]: #!#!
[17:39:15] [Server thread/ERROR]: #!#! End of Error.
[17:39:15] [Server thread/ERROR]: #!#!

I'm using this command to diagnose the slots I need for when people login to the hub (1st slot in hotbar):
code_language.skript:
command /slot [<text>] [<number>]:
    trigger:
        if arg-1 is not set:
            message "&cSpecify an argument"
        else if arg-1 is "set":
            set slot arg-2 of player's current inventory to compass named "..."
replace it with
code_language.skript:
set slot arg-2 of player to compass named "..."
if that doesn't work check your aliases file and see what the alias for a compass is
 
You really don't think I know what i'm doing don't you
just update skript dude, if there is a reason you're on such an outdated version atleast explain it. Otherwise everyone will tell you to updated it, thats probably why you are getting errors because nothing seems to be wrong with that code
 
no i dont, your on the help forums
I'm on the help forums because nothing works looking it up online... Threads like these come up in search results and fix problems OTHER people have. I have about 40+ skripts in a 2 month span and only requested help twice.
[doublepost=1517094762,1517094726][/doublepost]
just update skript dude, if there is a reason you're on such an outdated version atleast explain it. Otherwise everyone will tell you to updated it, thats probably why you are getting errors because nothing seems to be wrong with that code
Last I updated skript, half my skripts broke. And, this problem consists of SkQuery.
 
I'm on the help forums because nothing works looking it up online... Threads like these come up in search results and fix problems OTHER people have. I have about 40+ skripts in a 2 month span and only requested help twice.
[doublepost=1517094762,1517094726][/doublepost]
Last I updated skript, half my skripts broke. And, this problem consists of SkQuery.
Your scripts mostly broke because Bensku's skript has slight changes to the code. They are easily fixable. At this point, nobody should be using 2.1.2 on 1.8 because there are problems with it.
 
Your scripts mostly broke because Bensku's skript has slight changes to the code. They are easily fixable. At this point, nobody should be using 2.1.2 on 1.8 because there are problems with it.
Actually, they most likely broke because of an error related to lambdas. If only he would accept help...
 
Actually, they most likely broke because of an error related to lambdas. If only he would accept help...
What do you mean I don't accept help? lmfao, that's why I made this thread
[doublepost=1517191990,1517191885][/doublepost]Never mind everybody. Works as good as new now. Not sure how, but managed to fix itself lol
 
Status
Not open for further replies.