Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Adjustments.
Dieser Commit ist enthalten in:
Ursprung
68ded7ca7f
Commit
6f3397f76f
@ -179,6 +179,9 @@ public class VelocityConfiguration {
|
|||||||
", ipForwardingMode=" + ipForwardingMode +
|
", ipForwardingMode=" + ipForwardingMode +
|
||||||
", servers=" + servers +
|
", servers=" + servers +
|
||||||
", attemptConnectionOrder=" + attemptConnectionOrder +
|
", attemptConnectionOrder=" + attemptConnectionOrder +
|
||||||
|
", compressionThreshold=" + compressionThreshold +
|
||||||
|
", compressionLevel=" + compressionLevel +
|
||||||
|
", motdAsComponent=" + motdAsComponent +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,8 +126,10 @@ public class LoginSessionHandler implements MinecraftSessionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int threshold = VelocityServer.getServer().getConfiguration().getCompressionThreshold();
|
int threshold = VelocityServer.getServer().getConfiguration().getCompressionThreshold();
|
||||||
|
if (threshold >= 0) {
|
||||||
inbound.write(new SetCompression(threshold));
|
inbound.write(new SetCompression(threshold));
|
||||||
inbound.setCompressionThreshold(threshold);
|
inbound.setCompressionThreshold(threshold);
|
||||||
|
}
|
||||||
|
|
||||||
ServerLoginSuccess success = new ServerLoginSuccess();
|
ServerLoginSuccess success = new ServerLoginSuccess();
|
||||||
success.setUsername(profile.getName());
|
success.setUsername(profile.getName());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren