Why is this returning "internal error"?

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

SlackPlaysMC

Member
Jul 18, 2017
20
0
0
29
code_language.skript:
command /p <offlineplayer> [<text>]:
    permission: mod.punish
    permission message: &4Punish &8- &fNo permission.
    usage: &4Punish &8- &fNo permission.
    trigger:
        open chest with 6 rows named "&4Punish" to player
        wait 1 tick
        
        format slot 10 of player with red dye named "&4Permanent Ban" to close then run [execute the player command "/ban %arg-1% %arg-2%"]
        format slot 12 of player with paper named "&4Permanent Mute" to close then run [execute the player command "/mute %arg-1%"]
        format slot 14 of player with glass pane named "To be continued..." to close
        format slot 19 of player with orange dye named "&630 Day Ban" to close then run [execute the player command "/tempban %arg-1% 30 d %arg-2%"]
        format slot 21 of player with paper named "&c30 Day Mute" to close then run [execute the player command "/mute %arg-1% 30d"]
        format slot 28 of player with yellow dye named "&e7 Day Ban" to close then run [execute the player command "/tempban %arg-1% 7 d %arg-2%"]
        format slot 30 of player with paper named "&67 Day Mute" to close then run [execute the player command "/mute %arg-1% 7d"]
        format slot 39 of player with paper named "&724 Hour Mute" to close then run [execute the player command "/mute %arg-1% 1d"]
When I try to do /sk reload (sk file name) it says "Reloading (sk file name)..." then says "An internal error occured while attempting to perform this command"
can anyone explain why?
 
Send your console error
 
[19:41:31 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.1.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_172] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_172] at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172] Caused by: java.lang.NoSuchMethodError: ch.njol.util.NonNullPair.getSecond()Ljava/lang/Object; at ch.njol.skript.command.Commands.loadCommand(Commands.java:379) ~[?:?] at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:462) ~[?:?] at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:262) ~[?:?] at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] ... 15 more


- CONSOLE ERROR
[doublepost=1527104881,1527104505][/doublepost]the same internal error is coming up for another skript i made too.
is it that I need an addon for skript? something like skQuery 3 or Skellet or something?
(I'm pretty new to skript so i don't really know what either of them do)
[doublepost=1527105368][/doublepost]
Send your console error
I did it
[doublepost=1527106656][/doublepost]I've got to go now.
 
Which version of Minecraft + Skript are you using? (And yes, you need SkQuery)
 
thanks it worked, well, the skript didn't work but its not giving me internal errors anymore. I can probably figure out what the problem is with the skript
 
Status
Not open for further replies.