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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RandomSK sorting error

Discussion in 'Requests' started by KroterPvP, May 19, 2017.

  1. KroterPvP

    KroterPvP Active Member

    Joined:
    Apr 10, 2017
    Messages:
    178
    Likes Received:
    7
    Code (Skript):
    1. set {_temp::*} to {seco.bal::*} sorted from highest to lowest with output "@index::;@value"
    2. loop {_temp::*}:
    3.     add 1 to {_}
    4.     if {_} > 15:
    5.         exit loop
    6.     set {_x::*} to loop-value split at "::;"
    7.     send "%{_x::1}%: %{_x::2}%€"
    8.  
    I have this error:
    Code (Skript):
    1. [23:59:24 ERROR]: '::*} sorted from highest to lowest with output "@index::@value"' is not a valid item data (SuperEconomy.sk, line 36: set {_temp::*} to {seco.bal::*} sorted from highest to lowest with output "@index::@value"')
    I'm trying using this code to try if it runs and I recive this error:
    Code (Skript):
    1. command /toplist:
    2.     trigger:
    3.         set {kills::1} to 10
    4.         set {kills::2} to 5
    5.         set {kills::3} to 2
    6.         set {_toplist::*} to sorted {kills::*} from highest to lowest with output "@index has killed a total of @value"
    7.         message "Top Kills:"
    8.         loop {_toplist::*}:
    9.             message "%loop-index%: %loop-value%"
    Code (Skript):
    1. An international error has ocurred message in chat
    2. And this error in console:
    3. [00:05:04 INFO]: [Skript] Encountered 1 error while reloading the config and all scripts!
    4. [00:05:08 ERROR]: #!#!
    5. [00:05:08 ERROR]: #!#! [Skript] Severe Error:
    6. [00:05:08 ERROR]: #!#!
    7. [00:05:08 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
    8. [00:05:08 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
    9. [00:05:08 ERROR]: #!#! and check whether this error has already been reported.
    10. [00:05:08 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
    11. [00:05:08 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
    12. [00:05:08 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
    13. [00:05:08 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
    14. [00:05:08 ERROR]: #!#!
    15. [00:05:08 ERROR]: #!#! Stack trace:
    16. [00:05:08 ERROR]: #!#! ch.njol.skript.SkriptAPIException: UnparsedLiterals must be converted before use
    17. [00:05:08 ERROR]: #!#!     at ch.njol.skript.lang.UnparsedLiteral.invalidAccessException(UnparsedLiteral.java:273)
    18. [00:05:08 ERROR]: #!#!     at ch.njol.skript.lang.UnparsedLiteral.getAll(UnparsedLiteral.java:283)
    19. [00:05:08 ERROR]: #!#!     at ch.njol.skript.expressions.ExprSortedList.get(ExprSortedList.java:67)
    20. [00:05:08 ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:103)
    21. [00:05:08 ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:268)
    22. [00:05:08 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
    23. [00:05:08 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    24. [00:05:08 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    25. [00:05:08 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
    26. [00:05:08 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:220)
    27. [00:05:08 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:182)
    28. [00:05:08 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:268)
    29. [00:05:08 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:163)
    30. [00:05:08 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    31. [00:05:08 ERROR]: #!#!     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    32. [00:05:08 ERROR]: #!#!     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    33. [00:05:08 ERROR]: #!#!     at java.lang.reflect.Method.invoke(Unknown Source)
    34. [00:05:08 ERROR]: #!#!     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
    35. [00:05:08 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    36. [00:05:08 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    37. [00:05:08 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    38. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
    39. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
    40. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
    41. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
    42. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
    43. [00:05:08 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    44. [00:05:08 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
    45. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
    46. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
    47. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
    48. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
    49. [00:05:08 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
    50. [00:05:08 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
    51. [00:05:08 ERROR]: #!#!
    52. [00:05:08 ERROR]: #!#! Version Information:
    53. [00:05:08 ERROR]: #!#!   Skript: 2.2-dev27
    54. [00:05:08 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
    55. [00:05:08 ERROR]: #!#!   Minecraft: 1.8.8
    56. [00:05:08 ERROR]: #!#!   Java: 1.8.0_131 (Java HotSpot(TM) 64-Bit Server VM 25.131-b11)
    57. [00:05:08 ERROR]: #!#!   OS: Windows 10 amd64 10.0
    58. [00:05:08 ERROR]: #!#!
    59. [00:05:08 ERROR]: #!#! Running CraftBukkit: false
    60. [00:05:08 ERROR]: #!#!
    61. [00:05:08 ERROR]: #!#! Current node: null
    62. [00:05:08 ERROR]: #!#! Current item: set {_toplist::*}(as java.lang.Object) to sorted list
    63. [00:05:08 ERROR]: #!#!
    64. [00:05:08 ERROR]: #!#! Thread: Server thread
    65. [00:05:08 ERROR]: #!#!
    66. [00:05:08 ERROR]: #!#! End of Error.
    67. [00:05:08 ERROR]: #!#!
    I'm using RandomSK 2.7, spigot 1.8.8 in localhost.
     
    #1 KroterPvP, May 19, 2017
    Last edited: May 19, 2017

Share This Page

Loading...