Closed ericgrandt closed 1 week ago
We'll need to use a String instead of a Component and remove net.kyori.adventure
from the common dependencies. The Sponge and Bukkit implementations, since they're both bundled with net.kyori.adventure
, can use something like LegacyComponentSerializer.legacyAmpersand().deserialize(message)
. This should work, though not tested yet.
adventure-platform has a sponge adapter so you could still use it: https://github.com/KyoriPowered/adventure-platform/tree/main/platform-spongeapi
Simple fix seems to be to exclude net.kyori when shadow jarring the Sponge plugin; this avoids the duplicate classes and uses the one built into Sponge. Still doing testing, but so far things seem to be working for both SpongeForge and Vanilla
This prevent the plugin from working with SpongeForge.
Related: https://github.com/ericgrandt/TotalEconomy/issues/420