Fixed legacy forwarding. Minor changes

This commit is contained in:
Nanit 2020-11-27 20:24:52 +02:00
parent 7953244f80
commit e42dca22ea
2 changed files with 6 additions and 4 deletions

View File

@ -92,7 +92,7 @@ public class ClientConnection extends ChannelInboundHandlerAdapter {
setAddress(split[1]);
profile.setUuid(UuidUtil.fromString(split[2]));
} else {
disconnect("You've enabled player info forwarding. To join, enable it in your proxy too");
disconnect("You've enabled player info forwarding. You need to connect with proxy");
}
}
}
@ -126,8 +126,10 @@ public class ClientConnection extends ChannelInboundHandlerAdapter {
return;
}
if (server.getConfig().getInfoForwarding().isNone()){
if (!server.getConfig().getInfoForwarding().isModern()){
profile.setUsername(((PacketLoginStart) packet).getUsername());
if (profile.getUuid() == null)
profile.setUuid(UuidUtil.getOfflineModeUuid(getUsername()));
}

View File

@ -21,7 +21,7 @@ dimension: THE_END
# Spawn position in the world
spawnPosition:
x: 0.0
y: 32.0
y: 64.0
z: 0.0
yaw: 0.0
pitch: 0.0