internal error occurred while trying to execute this command

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

oHeckGage

Active Member
Mar 24, 2020
110
6
18
22
Code:
command /sell:
    trigger:
        set {_stone} to amount of stone in player's inventory
        set {_coal} to amount of coal in player's inventory * 2
        set {_iron} to amount of iron ingot in player's inventory * 5
        set {_gold} to amount of gold ingot in player's inventory * 10
        set {_redstone} to amount of redstone in player's inventory * 7
        set {_lapis} to amount of lapis in player's inventory * 7
        set {_diamond} to amount of diamond in player's inventory * 5
        set {_emerald} to amount of emerald in player's inventory * 5
        add ({_stone}, {_coal}, {_iron}, {_gold}, {_redstone}, {_lapis}, {_diamond}, and {_emerald}) to {_made}
        add {_made} to {m::%player%}
        remove all stone from player's inventory
        remove all coal from player's inventory
        remove all iron ingot from player's inventory
        remove all gold ingot from player's inventory
        remove all redstone from player's inventory
        remove all lapis from player's inventory
        remove all diamond from player's inventory
        remove all emerald from player's inventory
        send "&aYou made %{_made}%$!"

I tried using this on my 1.15.1 Spigot server and my Minehut server and the same error came up. internal error occurred while trying to execute this command. I tried researching and nothing came up except for like updating Skript and stuff while I made a test server yesterday to test this type of things and it's the lastest stable update of Skript. Any help?
 
When you get that message, there's always a console error involved, send this console error
 
Code:
[12:57:23] [Server thread/INFO]: oHeckGage issued server command: /sell
[12:57:23] [Server thread/INFO]: oHeckGage [92eb5b15-9b88-4552-af58-e3a1ea5f76fe]: /sell
[12:57:23] [Server thread/ERROR]: #!#!
[12:57:23] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[12:57:23] [Server thread/ERROR]: #!#!
[12:57:23] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[12:57:23] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[12:57:23] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[12:57:23] [Server thread/ERROR]: #!#! Here is full list of them:
[12:57:23] [Server thread/ERROR]: #!#! skRayFall (https://sk.rayfall.net/)
[12:57:23] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[12:57:23] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[12:57:23] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[12:57:23] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[12:57:23] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[12:57:23] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[12:57:23] [Server thread/ERROR]: #!#!
[12:57:23] [Server thread/ERROR]: #!#! Stack trace:
[12:57:23] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Variable.change(Variable.java:590)
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:284)
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:292)
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251)
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:251)
[12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:168)
[12:57:23] [Server thread/ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[12:57:23] [Server thread/ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[12:57:23] [Server thread/ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[12:57:23] [Server thread/ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
[12:57:23] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316)
[12:57:23] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[12:57:23] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529)
[12:57:23] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1649)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1497)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(SourceFile:144)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.aZ(MinecraftServer.java:917)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:910)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeAll(SourceFile:103)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:893)
[12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:827)
[12:57:23] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[12:57:23] [Server thread/ERROR]: #!#!
[12:57:23] [Server thread/ERROR]: #!#! Version Information:
[12:57:23] [Server thread/ERROR]: #!#!   Skript: 2.4.1 (latest)
[12:57:23] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
[12:57:23] [Server thread/ERROR]: #!#!     Date: 2019-12-22
[12:57:23] [Server thread/ERROR]: #!#!   Bukkit: 1.15.1-R0.1-SNAPSHOT
[12:57:23] [Server thread/ERROR]: #!#!   Minecraft: 1.15.1
[12:57:23] [Server thread/ERROR]: #!#!   Java: 1.8.0_261 (Java HotSpot(TM) 64-Bit Server VM 25.261-b12)
[12:57:23] [Server thread/ERROR]: #!#!   OS: Windows 10 amd64 10.0
[12:57:23] [Server thread/ERROR]: #!#!
[12:57:23] [Server thread/ERROR]: #!#! Server platform: Spigot
[12:57:23] [Server thread/ERROR]: #!#!
[12:57:23] [Server thread/ERROR]: #!#! Current node: null
[12:57:23] [Server thread/ERROR]: #!#! Current item: add ({_stone}(as java.lang.Object), {_coal}(as java.lang.Object), {_iron}(as java.lang.Object), {_gold}(as java.lang.Object), {_redstone}(as java.lang.Object), {_lapis}(as java.lang.Object), {_diamond}(as java.lang.Object) and {_emerald}(as java.lang.Object))[class java.lang.Object] to {_made}(as java.lang.Object)
[12:57:23] [Server thread/ERROR]: #!#! Current trigger: command /sell (simple event) (New Text Document.sk, line -1)
[12:57:23] [Server thread/ERROR]: #!#!
[12:57:23] [Server thread/ERROR]: #!#! Thread: Server thread
[12:57:23] [Server thread/ERROR]: #!#!
[12:57:23] [Server thread/ERROR]: #!#! Language: english
[12:57:23] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[12:57:23] [Server thread/ERROR]: #!#!
[12:57:23] [Server thread/ERROR]: #!#! End of Error.
[12:57:23] [Server thread/ERROR]: #!#!


I've seen this before, the "Skript Severe Error", but it never made stuff not work, and it's the actual code, not a server/plugin side error.
 
@ESW_ST33le That would take too long.
[doublepost=1595458860,1595458828][/doublepost]What MC Version and skript version?
 
MC Version: 1.15.1
Skript Version: Idrk I forget and I'm on 1.16 rn so I don't feel like changing versions, but it's the latest stable version.
[doublepost=1595459915,1595459781][/doublepost]Also, I said it's a code problem, not addon/plugin/server-side problem. (I'm 99% sure at least)
 
Have you tried the latest alpha version of Skript?
 
No, I've used 2 versions, the version Minehut is on and the latest stable version, should I try that?
 
Also, that won't fix the issue, my main server is on Minehut so I can't change the Skript version, but I'll try it on my test server running off my computer.
[doublepost=1595514400,1595514238][/doublepost]Doesn't work, running 2.5alpha6(rev1)
 
I'm going to remove my addons, and report it to the plugin's author.
[doublepost=1595540790,1595540650][/doublepost]Wasn't an addon, reporting it to the GitHub site, like you said.
 
Status
Not open for further replies.