From 49798894689bf88887c0f5ec4e4a8538eeff89fd Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 5 Dec 2023 16:31:14 +0100 Subject: [PATCH] Default to 1.20 Bau for Players > 1.19.4 Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/BauCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index c9c6e29..097423e 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -93,7 +93,9 @@ public class BauCommand extends SWCommand { ProxiedPlayer player = (ProxiedPlayer) commandSender; if (s.isEmpty()) { int version = player.getPendingConnection().getVersion(); - if (version > 578) { // Version > 1.15.2 + if (version > 762) { // Version > 1.19.4 + return ServerStarter.Version.PAPER_20; + } else if (version > 578) { // Version > 1.15.2 return ServerStarter.Version.PAPER_19; } else if (version > 340) { // Version > 1.12.2 return ServerStarter.Version.SPIGOT_15;