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.

help with sk reload

Discussion in 'Skript' started by Jack_The_ProPug, Feb 7, 2018.

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

    Joined:
    Jan 22, 2018
    Messages:
    25
    Likes Received:
    0
    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 (Skript):
    1. command /hban [<offline player>] [<text>]:
    2.     permission: rank.helper
    3.     permission message: &8&l(&c&l!&8&l) &c&lPermission Denied &8&l (&c&l!&8&l)
    4.     trigger:
    5.         if arg-2 is not set:
    6.             send "&cUsage: /hban (player) (reason)"
    7.         if arg-2 is set:
    8.             open chest with 1 row named "&aHelper Ban" to player
    9.             wait 3 tick
    10.             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%"]
    11.             format slot 1 of player with glass named "&cMute Player" to close then run [make player execute command "mute %arg-1% %arg-2%"]
    12.             format slot 2 of player with beacon named "&cKick Player" to close then run [make player execute command "kick %arg-1% %arg-2%"]
    13.                
     
  2. Juan7030

    Juan7030 Member

    Joined:
    Mar 20, 2017
    Messages:
    13
    Likes Received:
    0
    console error?
     
  3. Jack_The_ProPug

    Joined:
    Jan 22, 2018
    Messages:
    25
    Likes Received:
    0
    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
     
  4. Juan7030

    Juan7030 Member

    Joined:
    Mar 20, 2017
    Messages:
    13
    Likes Received:
    0
    You are using a old version of Skript.
     
  5. Snow-Pyon

    Snow-Pyon Well-Known Member

    Joined:
    Jan 25, 2017
    Messages:
    1,236
    Likes Received:
    176
    Medals:
    1. Update Skript.
    2. Don't use craftbukkit.
    3. Update your server to 1.8.8, nothing will work otherwise.
    4. I'd recommend using PaperSpigot.
     
  6. Jack_The_ProPug

    Joined:
    Jan 22, 2018
    Messages:
    25
    Likes Received:
    0
    says im using latest version
    --- Double Post Merged, Feb 7, 2018, Original Post Date: Feb 7, 2018 ---
    ill try switching versions
    --- Double Post Merged, Feb 8, 2018 ---
    ok i did all of that still same error
     
  7. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    You upgraded to Spigot 1.8.8 and are using the latest Bensku dev build?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...