mirror of
https://github.com/kaboomserver/extras.git
synced 2024-11-23 16:08:18 -05:00
Update ping message to 1.16.4
This commit is contained in:
parent
c5a46d6b68
commit
a695524743
2 changed files with 7 additions and 2 deletions
|
@ -71,6 +71,11 @@ public final class ServerCommand implements Listener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "/minecraft:fill":
|
||||||
|
case "/fill":
|
||||||
|
if (command.contains("auto:1")) {
|
||||||
|
return command.replace("auto:1", "auto:0");
|
||||||
|
}
|
||||||
case "/minecraft:gamerule":
|
case "/minecraft:gamerule":
|
||||||
case "/gamerule":
|
case "/gamerule":
|
||||||
if (arr.length >= 3) {
|
if (arr.length >= 3) {
|
||||||
|
|
|
@ -9,11 +9,11 @@ public final class ServerPing implements Listener {
|
||||||
@EventHandler
|
@EventHandler
|
||||||
void onServerListPing(final PaperServerListPingEvent event) {
|
void onServerListPing(final PaperServerListPingEvent event) {
|
||||||
if (event.getClient().getProtocolVersion() == -1) {
|
if (event.getClient().getProtocolVersion() == -1) {
|
||||||
final int protocol = 736;
|
final int protocol = 754;
|
||||||
event.setProtocolVersion(protocol);
|
event.setProtocolVersion(protocol);
|
||||||
} else {
|
} else {
|
||||||
event.setProtocolVersion(event.getClient().getProtocolVersion());
|
event.setProtocolVersion(event.getClient().getProtocolVersion());
|
||||||
}
|
}
|
||||||
event.setVersion("1.16.1");
|
event.setVersion("1.16.4");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue