Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
Remove some more debug messages
Dieser Commit ist enthalten in:
Ursprung
975743c76f
Commit
3354a46283
@ -186,7 +186,6 @@ public class BungeePlugin extends Plugin implements ViaPlatform, Listener {
|
|||||||
Object handshake = ReflectionUtil.invoke(pendingConnection, "getHandshake");
|
Object handshake = ReflectionUtil.invoke(pendingConnection, "getHandshake");
|
||||||
Method setProtocol = handshake.getClass().getDeclaredMethod("setProtocolVersion", int.class);
|
Method setProtocol = handshake.getClass().getDeclaredMethod("setProtocolVersion", int.class);
|
||||||
setProtocol.invoke(handshake, protocols == null ? user.get(ProtocolInfo.class).getProtocolVersion() : protocolId);
|
setProtocol.invoke(handshake, protocols == null ? user.get(ProtocolInfo.class).getProtocolVersion() : protocolId);
|
||||||
System.out.println("Changed server protocol id " + protocolId + " clientProtocol:" + user.get(ProtocolInfo.class).getProtocolVersion() + " path:" + protocols);
|
|
||||||
} catch (NoSuchMethodException | InvocationTargetException e1) {
|
} catch (NoSuchMethodException | InvocationTargetException e1) {
|
||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,6 @@ public class BungeeEncodeHandler extends MessageToMessageEncoder<ByteBuf> {
|
|||||||
ProtocolInfo info = viaConnection.get(ProtocolInfo.class);
|
ProtocolInfo info = viaConnection.get(ProtocolInfo.class);
|
||||||
// Refresh the pipes
|
// Refresh the pipes
|
||||||
List<Pair<Integer, Protocol>> protocols = ProtocolRegistry.getProtocolPath(info.getProtocolVersion(), protocolId);
|
List<Pair<Integer, Protocol>> protocols = ProtocolRegistry.getProtocolPath(info.getProtocolVersion(), protocolId);
|
||||||
System.out.println(info.getProtocolVersion() + ">" + protocolId + " " + protocols);
|
|
||||||
ProtocolPipeline pipeline = viaConnection.get(ProtocolInfo.class).getPipeline();
|
ProtocolPipeline pipeline = viaConnection.get(ProtocolInfo.class).getPipeline();
|
||||||
|
|
||||||
viaConnection.clearStoredObjects();
|
viaConnection.clearStoredObjects();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren