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

Change all legacy strings to adventure Components #36

Closed TheSirCororo closed 2 years ago

TheSirCororo commented 2 years ago

What about change all legacy strings to adventure components? And add adventure utils (for ex. String.contentToComponent() = Component.text(this) and String.legacyToComponent() = LegacyComponentSerializer.legacyAmpersand().deserialize(this) and Component.toLegacy() = LegacyComponentSerializer.legacyAmpersand().serialize(this))

jakobkmar commented 2 years ago

The change to Adventure has already happened with #34, it has just not been released yet.

However, the extension functions you are suggesting are still missing, they can be added as well.