MC 1.19 support

This commit is contained in:
Marc Baloup 2022-06-08 14:37:58 +02:00
parent e50bf0ee39
commit b2738a3d33
Signed by: marcbal
GPG Key ID: BBC0FE3ABC30B893
3 changed files with 6 additions and 4 deletions

View File

@ -129,10 +129,10 @@ public class BrigadierDispatcher implements Listener {
try { try {
return dispatcher.execute(parsed); return dispatcher.execute(parsed);
} catch (CommandSyntaxException e) { } catch (CommandSyntaxException e) {
sender.sendMessage(Chat.failureText("Erreur dutilisation de la commande : " + e.getMessage()).get()); sender.sendMessage(Chat.failureText("Erreur d'utilisation de la commande : " + e.getMessage()).get());
return 0; return 0;
} catch (Throwable e) { } catch (Throwable e) {
sender.sendMessage(Chat.failureText("Erreur lors de lexé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); Log.severe(e);
return 0; return 0;
} }

View File

@ -54,7 +54,9 @@ public enum MinecraftVersion {
v1_17_1(756, "1.17.1"), v1_17_1(756, "1.17.1"),
v1_18_to_1_18_1(757, "1.18", "1.18.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; // IMPORTANT: don't forget to update the versionMergeDisplay value when adding a new version;
private static Map<EnumSet<MinecraftVersion>, List<String>> versionMergeDisplay; private static Map<EnumSet<MinecraftVersion>, List<String>> versionMergeDisplay;

View File

@ -41,7 +41,7 @@
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bungeecord.version>1.18-R0.1-SNAPSHOT</bungeecord.version> <bungeecord.version>1.19-R0.1-SNAPSHOT</bungeecord.version>
<paper.version>1.18.1-R0.1</paper.version> <paper.version>1.18.1-R0.1</paper.version>
<mc.version>1.18.1</mc.version> <mc.version>1.18.1</mc.version>
</properties> </properties>