From b2738a3d33a5f94def11bf8aaaa6728232baaa27 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 8 Jun 2022 14:37:58 +0200 Subject: [PATCH] MC 1.19 support --- .../fr/pandacube/lib/bungee/commands/BrigadierDispatcher.java | 4 ++-- .../java/fr/pandacube/lib/core/util/MinecraftVersion.java | 4 +++- pom.xml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Bungee/src/main/java/fr/pandacube/lib/bungee/commands/BrigadierDispatcher.java b/Bungee/src/main/java/fr/pandacube/lib/bungee/commands/BrigadierDispatcher.java index 9954a17..30e60fe 100644 --- a/Bungee/src/main/java/fr/pandacube/lib/bungee/commands/BrigadierDispatcher.java +++ b/Bungee/src/main/java/fr/pandacube/lib/bungee/commands/BrigadierDispatcher.java @@ -129,10 +129,10 @@ public class BrigadierDispatcher implements Listener { try { return dispatcher.execute(parsed); } catch (CommandSyntaxException e) { - sender.sendMessage(Chat.failureText("Erreur d’utilisation de la commande : " + e.getMessage()).get()); + sender.sendMessage(Chat.failureText("Erreur d'utilisation de la commande : " + e.getMessage()).get()); return 0; } catch (Throwable e) { - sender.sendMessage(Chat.failureText("Erreur lors de l’exécution de la commande : " + e.getMessage()).get()); + sender.sendMessage(Chat.failureText("Erreur lors de l'exécution de la commande : " + e.getMessage()).get()); Log.severe(e); return 0; } diff --git a/Core/src/main/java/fr/pandacube/lib/core/util/MinecraftVersion.java b/Core/src/main/java/fr/pandacube/lib/core/util/MinecraftVersion.java index bed3169..987692c 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/util/MinecraftVersion.java +++ b/Core/src/main/java/fr/pandacube/lib/core/util/MinecraftVersion.java @@ -54,7 +54,9 @@ public enum MinecraftVersion { v1_17_1(756, "1.17.1"), v1_18_to_1_18_1(757, "1.18", "1.18.1"), - v1_18_2(758, "1.18.2"); + v1_18_2(758, "1.18.2"), + + v1_19(759, "1.19"); // IMPORTANT: don't forget to update the versionMergeDisplay value when adding a new version; private static Map, List> versionMergeDisplay; diff --git a/pom.xml b/pom.xml index 72426fc..c886124 100644 --- a/pom.xml +++ b/pom.xml @@ -41,7 +41,7 @@ 17 UTF-8 - 1.18-R0.1-SNAPSHOT + 1.19-R0.1-SNAPSHOT 1.18.1-R0.1 1.18.1