help with sk reload

  • 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.
Jan 22, 2018
25
0
0
24
Hello i am dev on a server and i made a plugin called hbans its really simple it works on my servers but not the other ones im dev on it says an internal error occured while attempting to preform this command every time i do sk reload on it i dont know if its my code or what

here is my code

code_language.skript:
command /hban [<offline player>] [<text>]:
    permission: rank.helper
    permission message: &8&l(&c&l!&8&l) &c&lPermission Denied &8&l (&c&l!&8&l)
    trigger:
        if arg-2 is not set:
            send "&cUsage: /hban (player) (reason)"
        if arg-2 is set:
            open chest with 1 row named "&aHelper Ban" to player
            wait 3 tick
            format slot 0 of player with grass named "&cBan Player" to close then run [execute console command "tempban %arg-1% 1 d %arg-2% &cYou were banned by the helper: %player%"]
            format slot 1 of player with glass named "&cMute Player" to close then run [make player execute command "mute %arg-1% %arg-2%"]
            format slot 2 of player with beacon named "&cKick Player" to close then run [make player execute command "kick %arg-1% %arg-2%"]
 
Hello i am dev on a server and i made a plugin called hbans its really simple it works on my servers but not the other ones im dev on it says an internal error occured while attempting to preform this command every time i do sk reload on it i dont know if its my code or what

here is my code

code_language.skript:
command /hban [<offline player>] [<text>]:
    permission: rank.helper
    permission message: &8&l(&c&l!&8&l) &c&lPermission Denied &8&l (&c&l!&8&l)
    trigger:
        if arg-2 is not set:
            send "&cUsage: /hban (player) (reason)"
        if arg-2 is set:
            open chest with 1 row named "&aHelper Ban" to player
            wait 3 tick
            format slot 0 of player with grass named "&cBan Player" to close then run [execute console command "tempban %arg-1% 1 d %arg-2% &cYou were banned by the helper: %player%"]
            format slot 1 of player with glass named "&cMute Player" to close then run [make player execute command "mute %arg-1% %arg-2%"]
            format slot 2 of player with beacon named "&cKick Player" to close then run [make player execute command "kick %arg-1% %arg-2%"]
console error?
 
sk reload helperban [21:25:36 INFO]: [Skript] Reloading helperban.sk... [21:25:36 WARN]: Unexpected exception while parsing console command "sk reload helperban" org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.1.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit-1.8.jar:git-Bukkit-7019900] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) ~[craftbukkit-1.8.jar:git-Bukkit-7019900] at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:625) ~[craftbukkit-1.8.jar:git-Bukkit-7019900] at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchServerCommand(CraftServer.java:611) [craftbukkit-1.8.jar:git-Bukkit-7019900] at net.minecraft.server.v1_8_R1.DedicatedServer.aM(DedicatedServer.java:320) [craftbukkit-1.8.jar:git-Bukkit-7019900] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:285) [craftbukkit-1.8.jar:git-Bukkit-7019900] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:609) [craftbukkit-1.8.jar:git-Bukkit-7019900] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:517) [craftbukkit-1.8.jar:git-Bukkit-7019900] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] 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) ~[craftbukkit-1.8.jar:git-Bukkit-7019900] ... 8 more

I just tired it in console
when i do it ingame it says interal error occured while attempting to preform this command
 
sk reload helperban [21:25:36 INFO]: [Skript] Reloading helperban.sk... [21:25:36 WARN]: Unexpected exception while parsing console command "sk reload helperban" org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.1.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit-1.8.jar:git-Bukkit-7019900] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) ~[craftbukkit-1.8.jar:git-Bukkit-7019900] at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:625) ~[craftbukkit-1.8.jar:git-Bukkit-7019900] at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchServerCommand(CraftServer.java:611) [craftbukkit-1.8.jar:git-Bukkit-7019900] at net.minecraft.server.v1_8_R1.DedicatedServer.aM(DedicatedServer.java:320) [craftbukkit-1.8.jar:git-Bukkit-7019900] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:285) [craftbukkit-1.8.jar:git-Bukkit-7019900] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:609) [craftbukkit-1.8.jar:git-Bukkit-7019900] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:517) [craftbukkit-1.8.jar:git-Bukkit-7019900] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] 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) ~[craftbukkit-1.8.jar:git-Bukkit-7019900] ... 8 more

I just tired it in console
when i do it ingame it says interal error occured while attempting to preform this command
You are using a old version of Skript.
 
says im using latest version
[doublepost=1517970866,1517970778][/doublepost]ill try switching versions
[doublepost=1518049715][/doublepost]ok i did all of that still same error
 
Status
Not open for further replies.