mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-01-08 19:27:48 +01:00
Improved invalid client version check
This commit is contained in:
parent
3828bfe9d3
commit
f1010f1237
@ -151,7 +151,7 @@ public class Client2ProxyHandler extends SimpleChannelInboundHandler<IPacket> {
|
|||||||
this.proxyConnection.setClientVersion(clientVersion);
|
this.proxyConnection.setClientVersion(clientVersion);
|
||||||
this.proxyConnection.setConnectionState(packet.intendedState);
|
this.proxyConnection.setConnectionState(packet.intendedState);
|
||||||
|
|
||||||
if (clientVersion == VersionEnum.UNKNOWN) {
|
if (clientVersion == VersionEnum.UNKNOWN || !VersionEnum.OFFICIAL_SUPPORTED_PROTOCOLS.contains(clientVersion)) {
|
||||||
this.proxyConnection.kickClient("§cYour client version is not supported by ViaProxy!");
|
this.proxyConnection.kickClient("§cYour client version is not supported by ViaProxy!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user