Solved An internal error occurred while reloading a script

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

GamingGeek

Supporter
Aug 1, 2017
46
0
0
21
Whenever I try reload some of my scripts, it gives me the 'An internal error has occurred' message and spits this out in console,
[21:48:25] [Server thread/INFO]: PhilipsHue issued server command: /sk reload socialmenu
[21:48:26] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.2-Fixes-V8b
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:146) ~[spigot.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:666) ~[spigot.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1189) [spigot.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1001) [spigot.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-PaperSpigot-"4c7641d"]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_161]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_161]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:774) [spigot.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [spigot.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [spigot.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [spigot.jar:git-PaperSpigot-"4c7641d"]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_161]
Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getFlagRegistry()Lcom/sk89q/worldguard/protection/flags/registry/FlagRegistry;
at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:244) ~[?:?]
at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:1) ~[?:?]
at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:400) ~[?:?]
at ch.njol.skript.registrations.Classes.parse(Classes.java:429) ~[?:?]
at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:97) ~[?:?]
at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:86) ~[?:?]
at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:1) ~[?:?]
at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:171) ~[?:?]
at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:131) ~[?:?]
at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:248) ~[?:?]
at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:175) ~[?:?]
at ch.njol.skript.lang.Condition.parse(Condition.java:83) ~[?:?]
at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:729) ~[?:?]
at ch.njol.skript.command.Commands.loadCommand(Commands.java:467) ~[?:?]
at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:469) ~[?:?]
at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:268) ~[?:?]
at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot.jar:git-PaperSpigot-"4c7641d"]
... 15 more
Any way to fix this? (btw, I know I can remove SkStuff and it will be fine, but I need it for nbt)
 
Last edited:
NBT should be avoided, and the tags you are using probably have alternatives? What nbt do you use?
 
NBT should be avoided, and the tags you are using probably have alternatives? What nbt do you use?
This is the line I'm using,
code_language.skript:
set slot 28 of player's current inventory to player head with custom nbt "{display:{Name:""Twitter""},SkullOwner:{Id:""11fce6c7-71ad-464e-98e7-c8e579de4758"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzY4NWEwYmU3NDNlOTA2N2RlOTVjZDhjNmQxYmEyMWFiMjFkMzczNzFiM2Q1OTcyMTFiYjc1ZTQzMjc5In19fQ==""}]}}}"
I'm using the NBT to put heads from minecraft-heads.com into a GUI
 
This is the line I'm using,
code_language.skript:
set slot 28 of player's current inventory to player head with custom nbt "{display:{Name:""Twitter""},SkullOwner:{Id:""11fce6c7-71ad-464e-98e7-c8e579de4758"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzY4NWEwYmU3NDNlOTA2N2RlOTVjZDhjNmQxYmEyMWFiMjFkMzczNzFiM2Q1OTcyMTFiYjc1ZTQzMjc5In19fQ==""}]}}}"
I'm using the NBT to put heads from minecraft-heads.com into a GUI

If you have mundosk then you should be able to use
code_language.skript:
set {_value} to "value from website"
set {_signature} to "signature from website"
set {_skull} to skull from skin with value {_value} signature {_signature}
set data of {_skull} to 3
 
Status
Not open for further replies.