Fixed in Skript 2.3.6
Edit: Sorting has been broken since 2.2+ (lowest we tested, classified as a medium priority bug) and still isn't working. Check this issue for more information!
Skript Version: 2.3.5
Skript Author: Bensku
Minecraft Version: 1.12.2 (Spigot)
*Please note I might be calling list variables arrays, I'm too used to doing so...
I'm unable to sort a list array (I've been trying to find a solution for many hours today)... I get a "List of type class java.lang.Object does not support sorting" error every time I reload my Skript. I assumed the error meant I would have to parse the values of my list variable to a comparable type, such as text and integers, so I did. I parsed the values in my array as integers/numbers and still get the same error! Please look at the pseudocode below, any help is much appreciated!
Edit: Sorting has been broken since 2.2+ (lowest we tested, classified as a medium priority bug) and still isn't working. Check this issue for more information!
Skript Version: 2.3.5
Skript Author: Bensku
Minecraft Version: 1.12.2 (Spigot)
*Please note I might be calling list variables arrays, I'm too used to doing so...
I'm unable to sort a list array (I've been trying to find a solution for many hours today)... I get a "List of type class java.lang.Object does not support sorting" error every time I reload my Skript. I assumed the error meant I would have to parse the values of my list variable to a comparable type, such as text and integers, so I did. I parsed the values in my array as integers/numbers and still get the same error! Please look at the pseudocode below, any help is much appreciated!
Code:
set {play::Hexivoid} to "5" parsed as integer
set {play::Candy} to "7" parsed as integer
set {play::Ramen} to "9" parsed as integer
set {new::*} to sorted {play::*}
Last edited: