mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-25 12:25:41 +01:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
1be3ab8d1d
@ -56,7 +56,7 @@ repositories {
|
||||
dependencies {
|
||||
include "com.viaversion:viaversion-common:4.10.0-23w51b-SNAPSHOT"
|
||||
include "com.viaversion:viabackwards-common:4.10.0-23w51b-SNAPSHOT"
|
||||
include "com.viaversion:viarewind-common:3.0.6-SNAPSHOT"
|
||||
include "com.viaversion:viarewind-common:3.0.6-20240102.175411-12"
|
||||
include "net.raphimc:ViaLegacy:2.2.22-SNAPSHOT"
|
||||
include "net.raphimc:ViaAprilFools:2.0.10"
|
||||
include("net.raphimc:ViaBedrock:0.0.4-SNAPSHOT") {
|
||||
@ -91,7 +91,7 @@ dependencies {
|
||||
include("net.raphimc.netminecraft:all:2.4.0-SNAPSHOT") {
|
||||
exclude group: "com.google.code.gson", module: "gson"
|
||||
}
|
||||
include("net.raphimc:MinecraftAuth:3.1.0-SNAPSHOT") {
|
||||
include("net.raphimc:MinecraftAuth:3.1.0") {
|
||||
exclude group: "com.google.code.gson", module: "gson"
|
||||
exclude group: "org.slf4j", module: "slf4j-api"
|
||||
}
|
||||
|
@ -4,4 +4,4 @@ org.gradle.configureondemand=true
|
||||
|
||||
maven_group=net.raphimc
|
||||
maven_name=ViaProxy
|
||||
maven_version=3.1.0-SNAPSHOT
|
||||
maven_version=3.1.1-SNAPSHOT
|
||||
|
@ -29,7 +29,7 @@ public class ViaProxyTransferProvider extends TransferProvider {
|
||||
|
||||
@Override
|
||||
public void connectToServer(UserConnection user, InetSocketAddress newAddress) {
|
||||
ViaBedrockTransferHolder.addTempRedirect(user.getChannel(), newAddress);
|
||||
ViaBedrockTransferHolder.addTempRedirect(ProxyConnection.fromChannel(user.getChannel()).getC2P(), newAddress);
|
||||
try {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user