SpongeAPI
SpongeAPI copied to clipboard
Add option to set a custom version in the ClientPingServerEvent
Ok so i was looking through the API lately and noticed that the option to set a minecraft servers version is missing. Doing this would allow us as an example to let the client think he is outdated and so always displaying the current minecraft version. And also setting a custom version name for the client to display. (This can be even coloured instead of the default red colour).
Here is an example, which did make use of this functionality of minecraft:
I hope this feature can get added to this awesome API.
You can by the way already get the version that is sent, but not edit it yet: https://github.com/SpongePowered/SpongeAPI/blob/66629378af29e796271ec09ef4b18ca46e8300ef/src/main/java/org/spongepowered/api/network/status/StatusClient.java#L50
Useful links for devs: https://github.com/SpongePowered/SpongeAPI/blob/stable-7/src/main/java/org/spongepowered/api/event/server/ClientPingServerEvent.java https://github.com/SpongePowered/SpongeAPI/blob/stable-7/src/main/java/org/spongepowered/api/network/status/StatusClient.java