mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-09-30 04:37:29 +02:00
Fixed ViaBedrock transfer provider
This commit is contained in:
parent
3d18dad3c8
commit
d6dff8998f
@ -29,7 +29,7 @@ public class ViaProxyTransferProvider extends TransferProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void connectToServer(UserConnection user, InetSocketAddress newAddress) {
|
public void connectToServer(UserConnection user, InetSocketAddress newAddress) {
|
||||||
ViaBedrockTransferHolder.addTempRedirect(user.getChannel(), newAddress);
|
ViaBedrockTransferHolder.addTempRedirect(ProxyConnection.fromChannel(user.getChannel()).getC2P(), newAddress);
|
||||||
try {
|
try {
|
||||||
ProxyConnection.fromUserConnection(user).kickClient("§aThe server transferred you to another server §7(§e" + newAddress.getHostName() + ":" + newAddress.getPort() + "§7)§a. Please reconnect to ViaProxy.");
|
ProxyConnection.fromUserConnection(user).kickClient("§aThe server transferred you to another server §7(§e" + newAddress.getHostName() + ":" + newAddress.getPort() + "§7)§a. Please reconnect to ViaProxy.");
|
||||||
} catch (CloseAndReturn ignored) {
|
} catch (CloseAndReturn ignored) {
|
||||||
|
Loading…
Reference in New Issue
Block a user