Closed BlackBaroness closed 9 months ago
@BlackBaroness Thanks for your pull request. I tested all changes and fixed a few issues. There is also a new example of kick command 😸. Check out the new changes and give me your feedback if everything is okay with my changes (I don't have any experiences with the sponge platform.
Check out the new changes and give me your feedback if everything is okay
Everything looks good (I don't use Sponge either btw)
Did you test it? I believe I had errors when LiteSpongeCommand
and LiteSpongePlatform
were not public, that's why I did it like that. Sponge tried to access these classes for some reason
Check out the new changes and give me your feedback if everything is okay
Everything looks good (I don't use Sponge either btw)
Did you test it? I believe I had errors when
LiteSpongeCommand
andLiteSpongePlatform
were not public, that's why I did it like that. Sponge tried to access these classes for some reason
Yeah, you are right. Sponge does not support package-private classes :/. I will fix that.
Closes #230
Hi, sorry for being super late!
Here is a Sponge 8 support (it's the latest stable API, included in all modern Sponge builds).
I added a
ServerPlayer
argument,ServerPlayer
contextual and test/tp <player> [player]
command. You can test it yourself using./gradlew :examples:sponge:runServer
. I also wanted to add a/gm
command, but Sponge has... special... API design and I couldn't understand how to make proper suggestions (but the parsing was relatively fine). However, I believe it's enough for this platform.It's the newly opened version of my previous PR. Changes in this one:
ServerPlayerArgument
andServerPlayerOnlyContextual
automatically, just like in Bukkit platformMessageKey
system to handle argument/contextual messages instead of using legacy contructor variantServerPlayerOnlyContextual
returnServerPlayer
, notPlayer