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.

Solved Why doesn't work why function?

Discussion in 'Skript' started by Flynn_LG, Dec 28, 2019.

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

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    This is my function:
    Code (Text):
    1. function Scoreboard():
    2.     wipe player's sidebar
    3.     set name of sidebar of player to "   &e•&6● &3&lGungame   "
    4.     set score " " in sidebar of player to 11
    5.     set score "&3•&b● &f&lKills:" in sidebar of player to 10
    6.     set score "&e➜ &a&l%{stats::%player's uuid%::kills}%" in sidebar of player to 9
    7.     set score "  " in sidebar of player to 8
    8.     set score "&3•&b● &f&lTode:" in sidebar of player to 7
    9.     set score "&e➜ &c&l%{stats::%player's uuid%::deaths}%" in sidebar of player to 6
    10.     set score "   " in sidebar of player to 5
    11.     set score "&3•&b● &f&lSpieler:" in sidebar of player to 4
    12.     set score "&e➜ &e&l%number of all players%" in sidebar of player to 3
    13.     set score "    " in sidebar of player to 2
    14.     set score "&3•&b● &f&lSpielvariante:" in sidebar of player to 1
    15.     set score "&e➜ &c&lTeaming Verboten!" in sidebar of player to 0
    And this is the error in the console:
    Code (Text):
    1. [10:49:21 ERROR]: 'Scoreboard()' is not a text (gamegun.sk, line 4: function Scoreboard():')

    Please help :emoji_grinning:

     
  2. Best Answer:
    Post #4 by TPGamesNL, Dec 28, 2019
  3. TheCringleYT

    TheCringleYT Active Member

    Joined:
    Sep 29, 2019
    Messages:
    194
    Likes Received:
    4
    Your skript needs an event and no errors to function, you have errors and it's probably because you need an event.

    Try putting - 'on skript load:' before your skript starts.

    I would recommend checking the documentation before you post on the forums, theirs normally everything you need on the documentation, wiki or even SkriptHub (skripthub.net)

    - TheCringleYT
     
  4. Flynn_LG

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    It not works.. It's the same error:

    Code (Text):
    1. on skript load:
    2.     broadcast "test"
    3.     stop
    4.  
    5. function Scoreboard():
    6.     wipe player's sidebar
    7.     set name of sidebar of player to "   &e•&6● &3&lGungame   "
    8.     set score " " in sidebar of player to 11
    9.     set score "&3•&b● &f&lKills:" in sidebar of player to 10
    10.     set score "&e➜ &a&l%{stats::%player's uuid%::kills}%" in sidebar of player to 9
    11.     set score "  " in sidebar of player to 8
    12.     set score "&3•&b● &f&lTode:" in sidebar of player to 7
    13.     set score "&e➜ &c&l%{stats::%player's uuid%::deaths}%" in sidebar of player to 6
    14.     set score "   " in sidebar of player to 5
    15.     set score "&3•&b● &f&lSpieler:" in sidebar of player to 4
    16.     set score "&e➜ &e&l%number of all players%" in sidebar of player to 3
    17.     set score "    " in sidebar of player to 2
    18.     set score "&3•&b● &f&lSpielvariante:" in sidebar of player to 1
    19.     set score "&e➜ &c&lTeaming Verboten!" in sidebar of player to 0
     
  5. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    You're using an outdated Skript version which doesn't have functions yet. Update to a newer Skript version (link)
     
  6. Flynn_LG

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    The Version don't work on my server..
    Code (Text):
    1. [11:52:34 ERROR]: Error occurred while enabling Skript v2.4.1 (Is it up to date?)
    2. java.lang.NoSuchMethodError: org.bukkit.inventory.meta.PotionMeta.getBasePotionData()Lorg/bukkit/potion/PotionData;
    3.     at ch.njol.skript.aliases.ItemData.compareItemMetas(ItemData.java:446) ~[?:?]
    4.     at ch.njol.skript.aliases.ItemData.matchAlias(ItemData.java:377) ~[?:?]
    5.     at ch.njol.skript.aliases.AliasesMap.exactMatch(AliasesMap.java:217) ~[?:?]
    6.     at ch.njol.skript.aliases.AliasesProvider.addAlias(AliasesProvider.java:285) ~[?:?]
    7.     at ch.njol.skript.aliases.AliasesParser.loadSingleAlias(AliasesParser.java:705) ~[?:?]
    8.     at ch.njol.skript.aliases.AliasesParser.loadAlias(AliasesParser.java:605) ~[?:?]
    9.     at ch.njol.skript.aliases.AliasesParser.load(AliasesParser.java:123) ~[?:?]
    10.     at ch.njol.skript.aliases.Aliases.load(Aliases.java:504) ~[?:?]
    11.     at ch.njol.skript.aliases.Aliases.load(Aliases.java:490) ~[?:?]
    12.     at ch.njol.skript.aliases.Aliases.lambda$1(Aliases.java:473) ~[?:?]
    13.     at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_201]
    14.     at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_201]
    15.     at java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:390) ~[?:1.8.0_201]
    16.     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_201]
    17.     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201]
    18.     at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_201]
    19.     at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_201]
    20.     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201]
    21.     at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_201]
    22.     at ch.njol.skript.aliases.Aliases.loadDirectory(Aliases.java:466) ~[?:?]
    23.     at ch.njol.skript.aliases.Aliases.loadInternal(Aliases.java:432) ~[?:?]
    24.     at ch.njol.skript.aliases.Aliases.load(Aliases.java:404) ~[?:?]
    25.     at ch.njol.skript.Skript.onEnable(Skript.java:402) ~[?:?]
    26.     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    27.     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    28.     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    29.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    30.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    31.     at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    32.     at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    33.     at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    34.     at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    35.     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    36.     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
     
  7. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    For Spigot 1.8.x, try 2.2-dev36
     
  8. Flynn_LG

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    The version works but...
    Code (Text):
    1. [11:59:57 INFO]: [Skript] Enabling gamegun.sk...
    2. [11:59:57 ERROR]: #!#!
    3. [11:59:57 ERROR]: #!#! [Skript] Severe Error:
    4. [11:59:57 ERROR]: #!#! Could not load gamegun.sk
    5. [11:59:57 ERROR]: #!#!
    6. [11:59:57 ERROR]: #!#! Something went horribly wrong with Skript.
    7. [11:59:57 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    8. [11:59:57 ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
    9. [11:59:57 ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
    10. [11:59:57 ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
    11. [11:59:57 ERROR]: #!#! nor it will work, unless you switch to supported platform.
    12. [11:59:57 ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
    13. [11:59:57 ERROR]: #!#!
    14. [11:59:57 ERROR]: #!#! Stack trace:
    15. [11:59:57 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for lambda
    16. [11:59:57 ERROR]: #!#!     at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
    17. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1804)
    18. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1771)
    19. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1519)
    20. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
    21. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
    22. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:495)
    23. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:814)
    24. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1535)
    25. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
    26. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
    27. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:59)
    28. [11:59:57 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:972)
    29. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.function.ScriptFunction.<init>(ScriptFunction.java:50)
    30. [11:59:57 ERROR]: #!#!     at ch.njol.skript.lang.function.Functions.loadFunction(Functions.java:143)
    31. [11:59:57 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:634)
    32. [11:59:57 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:389)
    33. [11:59:57 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:401)
    34. [11:59:57 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:434)
    35. [11:59:57 ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:230)
    36. [11:59:57 ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    37. [11:59:57 ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
    38. [11:59:57 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
    39. [11:59:57 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627)
    40. [11:59:57 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412)
    41. [11:59:57 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375)
    42. [11:59:57 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
    43. [11:59:57 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
    44. [11:59:57 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
    45. [11:59:57 ERROR]: #!#!
    46. [11:59:57 ERROR]: #!#! Version Information:
    47. [11:59:57 ERROR]: #!#!   Skript: 2.2-dev36 (custom version)
    48. [11:59:57 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
    49. [11:59:57 ERROR]: #!#!   Minecraft: 1.8.8
    50. [11:59:57 ERROR]: #!#!   Java: 1.8.0_201 (Java HotSpot(TM) 64-Bit Server VM 25.201-b09)
    51. [11:59:57 ERROR]: #!#!   OS: Mac OS X x86_64 10.15.2
    52. [11:59:57 ERROR]: #!#!
    53. [11:59:57 ERROR]: #!#! Server platform: Spigot
    54. [11:59:57 ERROR]: #!#!
    55. [11:59:57 ERROR]: #!#! Current node: wipe player's sidebar (gamegun.sk, line 9)
    56. [11:59:57 ERROR]: #!#! Current item: null
    57. [11:59:57 ERROR]: #!#!
    58. [11:59:57 ERROR]: #!#! Thread: Server thread
    59. [11:59:57 ERROR]: #!#!
    60. [11:59:57 ERROR]: #!#! Language: english
    61. [11:59:57 ERROR]: #!#! Link parse mode: DISABLED
    62. [11:59:57 ERROR]: #!#!
    63. [11:59:57 ERROR]: #!#! End of Error.
    64. [11:59:57 ERROR]: #!#!
    65. [11:59:57 INFO]: [Skript] Successfully enabled & parsed gamegun.sk.
     
  9. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,500
    Likes Received:
    107
    Medals:
    Do you have SkQuery? If so, update it
     
  10. Flynn_LG

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    Thanks! I have the new version of SkQuery on my server BUTTTTTT,

    on load comes that error:
    Code (Text):
    1. [12:13:42 WARN]: Unexpected exception while parsing console command "skript enable gamegun"
    2. org.bukkit.command.CommandException: Unhandled exception executing command 'skript' in plugin Skript v2.2-dev36
    3.     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    4.     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    5.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    6.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    7.     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    8.     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    9.     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    10.     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    11.     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
    12. Caused by: java.lang.NoSuchMethodError: ch.njol.skript.command.Commands.loadCommand(Lch/njol/skript/config/SectionNode;Z)Lch/njol/skript/command/ScriptCommand;
    13.     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:621) ~[?:?]
    14.     at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:389) ~[?:?]
    15.     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:401) ~[?:?]
    16.     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:434) ~[?:?]
    17.     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:230) ~[?:?]
    18.     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    19.     ... 8 more
     
  11. Devrse

    Devrse Member

    Joined:
    Dec 28, 2019
    Messages:
    13
    Likes Received:
    0
    have you ever used this function
    Code (Text):
    1. every 1 minute:
    2.          loop all players:
    3.                 wipe loop-player’s sidebar
    4.                 set name of sidebar of player to ""
    5.                 set score " " in sidebar of player to 11
    6.                 set score "" in sidebar of player to 10
    7.                 set score "" in    sidebar of player to 9
    8.                 set score "" in sidebar of player to 8
    9.                 set score "" in sidebar of player to 7
    10.                 set score "" in sidebar of player to 6
    11.                 set score "" in sidebar of player to 5
    12.                 set score "" in sidebar of    player to 4
    13.                 set score "" in sidebar of player to 3
    14.                 set score "" in sidebar of player to 2
    15.                 set score "" in sidebar of player to 1
    16.                 set score "" in   sidebar of player to 0
     
    #10 Devrse, Dec 28, 2019
    Last edited: Dec 28, 2019
  12. Flynn_LG

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    Yes i used this function... This is a GunGame script and on any kill i update the scoreboard with this text:

    Code (Text):
    1. on death:
    2.     Scoreboard(attacker)
    3.     Scoreboard(victim)


    It's an example..
    --- Double Post Merged, Dec 28, 2019, Original Post Date: Dec 28, 2019 ---
    Please help :emoji_disappointed:
     
    • Like Like x 1
  13. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Code (Skript):
    1. function ScoreBoard(player: player):
    2.     wipe {_player}'s sidebar
    3.     set name of sidebar of {_player} to "   &e&6&3&lGungame   "
    4.     set score " " in sidebar of {_player} to 11
    5.     set score "&3&b&f&lKills:" in sidebar of {_player} to 10
    6.     set score "&e&a&l%{stats::%{_player}'s uuid%::kills}%" in sidebar of {_player} to 9
    7.     set score "  " in sidebar of {_player} to 8
    8.     set score "&3&b&f&lTode:" in sidebar of {_player} to 7
    9.     set score "&e&c&l%{stats::%{_player}'s uuid%::deaths}%" in sidebar of {_player} to 6
    10.     set score "   " in sidebar of {_player} to 5
    11.     set score "&3&b&f&lSpieler:" in sidebar of {_player} to 4
    12.     set score "&e&e&l%number of all playerss%" in sidebar of {_player} to 3
    13.     set score "    " in sidebar of {_player} to 2
    14.     set score "&3&b&f&lSpielvariante:" in sidebar of {_player} to 1
    15.     set score "&e&c&lTeaming Verboten!" in sidebar of {_player} to 0
    16. every 1 second:
    17.     loop all players:
    18.         ScoreBoard(loop-player)
     
  14. Flynn_LG

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    Why the loop ever 1 second?
     
  15. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    For the scoreboard to update
     
  16. Flynn_LG

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    I do that with the text on death: :emoji_wink:
     
  17. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    This will make the scoreboard update only when a player dies
     
  18. Flynn_LG

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    Same Problem..

    Code (Text):
    1. [13:21:05 WARN]: Unexpected exception while parsing console command "skript enable gamegun"
    2. org.bukkit.command.CommandException: Unhandled exception executing command 'skript' in plugin Skript v2.2-dev36
    3.     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    4.     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    5.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    6.     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    7.     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    8.     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    9.     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    10.     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    11.     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
    12. Caused by: java.lang.NoSuchMethodError: ch.njol.skript.command.Commands.loadCommand(Lch/njol/skript/config/SectionNode;Z)Lch/njol/skript/command/ScriptCommand;
    13.     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:621) ~[?:?]
    14.     at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:389) ~[?:?]
    15.     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:401) ~[?:?]
    16.     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:434) ~[?:?]
    17.     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:230) ~[?:?]
    18.     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
    19.     ... 8 more
     
  19. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    But remove every 1 second
    and put on death instad
    then replace Scoreboard(player) with Scoreboard(victim or attacker)
     
  20. Flynn_LG

    Flynn_LG Member

    Joined:
    Nov 4, 2019
    Messages:
    38
    Likes Received:
    1
    It should also :emoji_ok_hand:
    --- Double Post Merged, Dec 28, 2019, Original Post Date: Dec 28, 2019 ---
    Spigot 1.8.9
     
  21. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    What fork is this skript?
    --- Double Post Merged, Dec 28, 2019, Original Post Date: Dec 28, 2019 ---
    I know i read the stacktrace
     
Thread Status:
Not open for further replies.

Share This Page

Loading...