From a6955247432108301c3f687e5534fa53083ea95a Mon Sep 17 00:00:00 2001 From: mathiascode Date: Fri, 27 Nov 2020 19:43:19 +0200 Subject: [PATCH] Update ping message to 1.16.4 --- .../java/pw/kaboom/extras/modules/server/ServerCommand.java | 5 +++++ .../java/pw/kaboom/extras/modules/server/ServerPing.java | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java b/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java index 1c61f64..c7dd00b 100644 --- a/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java +++ b/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java @@ -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) { diff --git a/src/main/java/pw/kaboom/extras/modules/server/ServerPing.java b/src/main/java/pw/kaboom/extras/modules/server/ServerPing.java index 7dfe307..055b2dc 100644 --- a/src/main/java/pw/kaboom/extras/modules/server/ServerPing.java +++ b/src/main/java/pw/kaboom/extras/modules/server/ServerPing.java @@ -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"); } }