CloudNetService / CloudNet

A modern application that can dynamically and easily deliver Minecraft oriented software
https://cloudnetservice.eu
Apache License 2.0
369 stars 115 forks source link

SyncProxy | option for displaying supported minecraft versions #1344

Open Plunzi opened 6 months ago

Plunzi commented 6 months ago

Describe the new feature

In Minecraft, it's possible to check if your client version aligns with the server's supported versions. Take a look at these visual indicators:

Server Supported Server Supported

For clients supporting your server version, they conveniently display their current player count:

Player Count

However, there's an existing challenge with CloudNet. When the Protocol-Text is modified to anything other than null, CloudNet automatically assumes that the server is undergoing maintenance or a similar state. To resolve this, a viable solution would involve adding an additional entry in the config.json file for supported Minecraft versions.

Furthermore, the code needs adjustment to ensure the Version Number is correctly set based on the provided text, rather than defaulting to 1.

https://github.com/CloudNetService/CloudNet-v3/blob/nightly/modules%2Fsyncproxy%2Fsrc%2Fmain%2Fjava%2Feu%2Fcloudnetservice%2Fmodules%2Fsyncproxy%2Fplatform%2Fvelocity%2FVelocitySyncProxyListener.java#L81

Why do you need this feature?

This feature will empower players by providing clarity on whether they are using a Minecraft Protocol Version that is supported by the server.

Alternatives

I don't think so.

Other

No response

Issue uniqueness