jakobkmar / KSpigot

Extended Spigot and Bukkit API for Kotlin
https://jakobkmar.github.io/KSpigot
GNU General Public License v3.0
138 stars 33 forks source link

suggestListSuspending() with player list causes critical error #37

Closed TheSirCororo closed 2 years ago

TheSirCororo commented 2 years ago

I have suggestions:

suggestListSuspending {
     Bukkit.getOnlinePlayers().map { it.name }
}

When I executes any command with that suggestions, I get crash with error https://pastebin.com/XnjtZ9zf I have Kotlin in my jar

l4zs commented 2 years ago

You'll have to add the following libraries to your plugin.yml: "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0" "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.0"

jakobkmar commented 2 years ago

What @l4zs says is correct, the paperweight version kspigot used when publishing at that time had a bug which broke transitive dependencies.