Update ping message to 1.16.4

This commit is contained in:
mathiascode 2020-11-27 19:43:19 +02:00
parent c5a46d6b68
commit a695524743
2 changed files with 7 additions and 2 deletions

View file

@ -71,6 +71,11 @@ public final class ServerCommand implements Listener {
}
}
break;
case "/minecraft:fill":
case "/fill":
if (command.contains("auto:1")) {
return command.replace("auto:1", "auto:0");
}
case "/minecraft:gamerule":
case "/gamerule":
if (arr.length >= 3) {

View file

@ -9,11 +9,11 @@ public final class ServerPing implements Listener {
@EventHandler
void onServerListPing(final PaperServerListPingEvent event) {
if (event.getClient().getProtocolVersion() == -1) {
final int protocol = 736;
final int protocol = 754;
event.setProtocolVersion(protocol);
} else {
event.setProtocolVersion(event.getClient().getProtocolVersion());
}
event.setVersion("1.16.1");
event.setVersion("1.16.4");
}
}