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.

internal error occurred while trying to execute this command

Discussion in 'Skript' started by oHeckGage, Jul 22, 2020.

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

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    5
    Code (Text):
    1.  
    2. command /sell:
    3.     trigger:
    4.         set {_stone} to amount of stone in player's inventory
    5.         set {_coal} to amount of coal in player's inventory * 2
    6.         set {_iron} to amount of iron ingot in player's inventory * 5
    7.         set {_gold} to amount of gold ingot in player's inventory * 10
    8.         set {_redstone} to amount of redstone in player's inventory * 7
    9.         set {_lapis} to amount of lapis in player's inventory * 7
    10.         set {_diamond} to amount of diamond in player's inventory * 5
    11.         set {_emerald} to amount of emerald in player's inventory * 5
    12.         add ({_stone}, {_coal}, {_iron}, {_gold}, {_redstone}, {_lapis}, {_diamond}, and {_emerald}) to {_made}
    13.         add {_made} to {m::%player%}
    14.         remove all stone from player's inventory
    15.         remove all coal from player's inventory
    16.         remove all iron ingot from player's inventory
    17.         remove all gold ingot from player's inventory
    18.         remove all redstone from player's inventory
    19.         remove all lapis from player's inventory
    20.         remove all diamond from player's inventory
    21.         remove all emerald from player's inventory
    22.         send "&aYou made %{_made}%$!"
    23.  
    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?
     
  2. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    When you get that message, there's always a console error involved, send this console error
     
  3. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    5
    Code (Text):
    1.  
    2. [12:57:23] [Server thread/INFO]: oHeckGage issued server command: /sell
    3. [12:57:23] [Server thread/INFO]: oHeckGage [92eb5b15-9b88-4552-af58-e3a1ea5f76fe]: /sell
    4. [12:57:23] [Server thread/ERROR]: #!#!
    5. [12:57:23] [Server thread/ERROR]: #!#! [Skript] Severe Error:
    6. [12:57:23] [Server thread/ERROR]: #!#!
    7. [12:57:23] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
    8. [12:57:23] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    9. [12:57:23] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
    10. [12:57:23] [Server thread/ERROR]: #!#! Here is full list of them:
    11. [12:57:23] [Server thread/ERROR]: #!#! skRayFall (https://sk.rayfall.net/)
    12. [12:57:23] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
    13. [12:57:23] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
    14. [12:57:23] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
    15. [12:57:23] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
    16. [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.
    17. [12:57:23] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
    18. [12:57:23] [Server thread/ERROR]: #!#!
    19. [12:57:23] [Server thread/ERROR]: #!#! Stack trace:
    20. [12:57:23] [Server thread/ERROR]: #!#! java.lang.NullPointerException
    21. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Variable.change(Variable.java:590)
    22. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:284)
    23. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
    24. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    25. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    26. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
    27. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:292)
    28. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251)
    29. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:251)
    30. [12:57:23] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:168)
    31. [12:57:23] [Server thread/ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    32. [12:57:23] [Server thread/ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    33. [12:57:23] [Server thread/ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    34. [12:57:23] [Server thread/ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
    35. [12:57:23] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316)
    36. [12:57:23] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
    37. [12:57:23] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529)
    38. [12:57:23] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514)
    39. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1649)
    40. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1497)
    41. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47)
    42. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
    43. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
    44. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18)
    45. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(SourceFile:144)
    46. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
    47. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118)
    48. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.aZ(MinecraftServer.java:917)
    49. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:910)
    50. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeAll(SourceFile:103)
    51. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:893)
    52. [12:57:23] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:827)
    53. [12:57:23] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
    54. [12:57:23] [Server thread/ERROR]: #!#!
    55. [12:57:23] [Server thread/ERROR]: #!#! Version Information:
    56. [12:57:23] [Server thread/ERROR]: #!#!   Skript: 2.4.1 (latest)
    57. [12:57:23] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
    58. [12:57:23] [Server thread/ERROR]: #!#!     Date: 2019-12-22
    59. [12:57:23] [Server thread/ERROR]: #!#!   Bukkit: 1.15.1-R0.1-SNAPSHOT
    60. [12:57:23] [Server thread/ERROR]: #!#!   Minecraft: 1.15.1
    61. [12:57:23] [Server thread/ERROR]: #!#!   Java: 1.8.0_261 (Java HotSpot(TM) 64-Bit Server VM 25.261-b12)
    62. [12:57:23] [Server thread/ERROR]: #!#!   OS: Windows 10 amd64 10.0
    63. [12:57:23] [Server thread/ERROR]: #!#!
    64. [12:57:23] [Server thread/ERROR]: #!#! Server platform: Spigot
    65. [12:57:23] [Server thread/ERROR]: #!#!
    66. [12:57:23] [Server thread/ERROR]: #!#! Current node: null
    67. [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)
    68. [12:57:23] [Server thread/ERROR]: #!#! Current trigger: command /sell (simple event) (New Text Document.sk, line -1)
    69. [12:57:23] [Server thread/ERROR]: #!#!
    70. [12:57:23] [Server thread/ERROR]: #!#! Thread: Server thread
    71. [12:57:23] [Server thread/ERROR]: #!#!
    72. [12:57:23] [Server thread/ERROR]: #!#! Language: english
    73. [12:57:23] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
    74. [12:57:23] [Server thread/ERROR]: #!#!
    75. [12:57:23] [Server thread/ERROR]: #!#! End of Error.
    76. [12:57:23] [Server thread/ERROR]: #!#!
    77.  

    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.
     
  4. ESW_ST33le

    ESW_ST33le Member

    Joined:
    May 6, 2020
    Messages:
    32
    Likes Received:
    1
    maybe remove all of your addons and try to see which one is the one causing the issue?
     
  5. Gowixx

    Gowixx Member

    Joined:
    Jul 9, 2020
    Messages:
    28
    Likes Received:
    6
    @ESW_ST33le That would take too long.
    --- Double Post Merged, Jul 23, 2020, Original Post Date: Jul 23, 2020 ---
    What MC Version and skript version?
     
  6. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    5
    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.
    --- Double Post Merged, Jul 23, 2020, Original Post Date: Jul 23, 2020 ---
    Also, I said it's a code problem, not addon/plugin/server-side problem. (I'm 99% sure at least)
     
  7. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    Have you tried the latest alpha version of Skript?
     
  8. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    5
    No, I've used 2 versions, the version Minehut is on and the latest stable version, should I try that?
     
  9. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
  10. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    5
    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.
    --- Double Post Merged, Jul 23, 2020, Original Post Date: Jul 23, 2020 ---
    Doesn't work, running 2.5alpha6(rev1)
     
  11. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    In that case, it'll be helpful to report it on the issues page of Skript.
     
  12. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    5
    I'm going to remove my addons, and report it to the plugin's author.
    --- Double Post Merged, Jul 23, 2020, Original Post Date: Jul 23, 2020 ---
    Wasn't an addon, reporting it to the GitHub site, like you said.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...