Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Update version strings + add constant
Dieser Commit ist enthalten in:
Ursprung
6a5c40ecdf
Commit
ac378a8efa
@ -25,7 +25,7 @@ It is sufficient to run `./gradlew build` to run the full build cycle.
|
|||||||
## Status
|
## Status
|
||||||
|
|
||||||
Velocity is far from finished, but most of the essential pieces are in place:
|
Velocity is far from finished, but most of the essential pieces are in place:
|
||||||
you can switch between two servers running Minecraft 1.9-1.13. More versions
|
you can switch between two servers running Minecraft 1.8-1.13. More versions
|
||||||
and functionality is planned.
|
and functionality is planned.
|
||||||
|
|
||||||
You should join us on **irc.spi.gt** `#velocity` or send us a pull request.
|
You should join us on **irc.spi.gt** `#velocity` or send us a pull request.
|
||||||
|
@ -4,6 +4,7 @@ import com.google.common.base.Preconditions;
|
|||||||
import com.velocitypowered.proxy.VelocityServer;
|
import com.velocitypowered.proxy.VelocityServer;
|
||||||
import com.velocitypowered.proxy.config.VelocityConfiguration;
|
import com.velocitypowered.proxy.config.VelocityConfiguration;
|
||||||
import com.velocitypowered.proxy.protocol.MinecraftPacket;
|
import com.velocitypowered.proxy.protocol.MinecraftPacket;
|
||||||
|
import com.velocitypowered.proxy.protocol.ProtocolConstants;
|
||||||
import com.velocitypowered.proxy.protocol.packet.StatusPing;
|
import com.velocitypowered.proxy.protocol.packet.StatusPing;
|
||||||
import com.velocitypowered.proxy.protocol.packet.StatusRequest;
|
import com.velocitypowered.proxy.protocol.packet.StatusRequest;
|
||||||
import com.velocitypowered.proxy.protocol.packet.StatusResponse;
|
import com.velocitypowered.proxy.protocol.packet.StatusResponse;
|
||||||
@ -35,7 +36,7 @@ public class StatusSessionHandler implements MinecraftSessionHandler {
|
|||||||
|
|
||||||
// Status request
|
// Status request
|
||||||
ServerPing ping = new ServerPing(
|
ServerPing ping = new ServerPing(
|
||||||
new ServerPing.Version(connection.getProtocolVersion(), "Velocity 1.9-1.13"),
|
new ServerPing.Version(connection.getProtocolVersion(), "Velocity " + ProtocolConstants.SUPPORTED_GENERIC_VERSION_STRING),
|
||||||
new ServerPing.Players(0, configuration.getShowMaxPlayers()),
|
new ServerPing.Players(0, configuration.getShowMaxPlayers()),
|
||||||
configuration.getMotdComponent(),
|
configuration.getMotdComponent(),
|
||||||
null
|
null
|
||||||
|
@ -17,6 +17,9 @@ public enum ProtocolConstants { ;
|
|||||||
public static final int MINECRAFT_1_13 = 393;
|
public static final int MINECRAFT_1_13 = 393;
|
||||||
|
|
||||||
public static final int MINIMUM_GENERIC_VERSION = MINECRAFT_1_8;
|
public static final int MINIMUM_GENERIC_VERSION = MINECRAFT_1_8;
|
||||||
|
public static final int MAXIMUM_GENERIC_VERSION = MINECRAFT_1_13;
|
||||||
|
|
||||||
|
public static final String SUPPORTED_GENERIC_VERSION_STRING = "1.8-1.13";
|
||||||
|
|
||||||
public static final int[] SUPPORTED_VERSIONS = new int[] {
|
public static final int[] SUPPORTED_VERSIONS = new int[] {
|
||||||
MINECRAFT_1_8,
|
MINECRAFT_1_8,
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren