Update for 1.16.210

This commit is contained in:
Camotoy 2021-03-09 13:25:29 -05:00
parent c73714c9b4
commit 61bcc6a75d
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
5 changed files with 22 additions and 5 deletions

View file

@ -71,11 +71,10 @@
</dependency>
<dependency>
<groupId>com.github.CloudburstMC.Protocol</groupId>
<artifactId>bedrock-v422</artifactId>
<version>294e7e53b6</version>
<artifactId>bedrock-v428</artifactId>
<version>42da92f</version>
<scope>compile</scope>
<exclusions>
<!-- Stay on the older version of Network while it's rewritten -->
<exclusion>
<groupId>com.nukkitx.network</groupId>
<artifactId>raknet</artifactId>
@ -85,7 +84,7 @@
<dependency>
<groupId>com.nukkitx.network</groupId>
<artifactId>raknet</artifactId>
<version>1.6.20</version>
<version>1.6.26-20210217.205834-2</version>
<scope>compile</scope>
</dependency>
<dependency>

View file

@ -52,6 +52,8 @@ public class GeyserConnectConfig {
private String motd;
private String submotd = "GeyserConnect";
@JsonProperty("welcome-file")
private String welcomeFile = "welcome.txt";

View file

@ -157,15 +157,22 @@ public class MasterServer {
if (GeyserConnector.getInstance() != null) {
playerCount += GeyserConnector.getInstance().getPlayers().size();
}
String subMotd = geyserConnectConfig.getSubmotd();
if (subMotd == null || subMotd.isEmpty()) {
subMotd = "GeyserConnect";
}
BedrockPong bdPong = new BedrockPong();
bdPong.setEdition("MCPE");
bdPong.setMotd(geyserConnectConfig.getMotd());
bdPong.setSubMotd(subMotd);
bdPong.setPlayerCount(playerCount);
bdPong.setMaximumPlayerCount(geyserConnectConfig.getMaxPlayers());
bdPong.setGameType("Survival");
bdPong.setIpv4Port(port);
bdPong.setProtocolVersion(BedrockProtocol.DEFAULT_BEDROCK_CODEC.getProtocolVersion());
bdPong.setVersion(null); // Server tries to connect either way and it looks better
bdPong.setVersion(BedrockProtocol.DEFAULT_BEDROCK_CODEC.getMinecraftVersion());
return bdPong;
}

View file

@ -134,6 +134,13 @@ public class Player {
startGamePacket.setEnchantmentSeed(0);
startGamePacket.setMultiplayerCorrelationId("");
startGamePacket.setAuthoritativeMovementMode(AuthoritativeMovementMode.CLIENT);
SyncedPlayerMovementSettings settings = new SyncedPlayerMovementSettings();
settings.setMovementMode(AuthoritativeMovementMode.CLIENT);
settings.setRewindHistorySize(0);
settings.setServerAuthoritativeBlockBreaking(false);
startGamePacket.setPlayerMovementSettings(settings);
startGamePacket.setVanillaVersion("*");
session.sendPacket(startGamePacket);

View file

@ -19,6 +19,8 @@ max-players: 100
# MOTD to display
motd: "GeyserConnect Proxy"
#Sub-MOTD to display. Will be "GeyserConnect" by default if left blank
submotd: "GeyserConnect"
# Welcome message file, if file exists and is not empty this will show on join
# This is loaded live so will update without a server restart