From c4ded8c7ca9ed4de5e9547248887573d380f7e70 Mon Sep 17 00:00:00 2001 From: EternalHuman <71584363+EternalHuman@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:58:52 +0300 Subject: [PATCH 1/6] Update PacketIds.java --- .../me/catcoder/sidebar/protocol/PacketIds.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/catcoder/sidebar/protocol/PacketIds.java b/src/main/java/me/catcoder/sidebar/protocol/PacketIds.java index 58467e5..7ccf918 100644 --- a/src/main/java/me/catcoder/sidebar/protocol/PacketIds.java +++ b/src/main/java/me/catcoder/sidebar/protocol/PacketIds.java @@ -19,7 +19,8 @@ public enum PacketIds { map(ProtocolConstants.MINECRAFT_1_20_2, 0x5C), map(ProtocolConstants.MINECRAFT_1_20_4, 0x5E), map(ProtocolConstants.MINECRAFT_1_20_4, 0x5E), - map(ProtocolConstants.MINECRAFT_1_20_6, 0x60) + map(ProtocolConstants.MINECRAFT_1_20_6, 0x60), + map(ProtocolConstants.MINECRAFT_1_21_2, 0x67) ), UPDATE_SCORE( map(ProtocolConstants.MINECRAFT_1_12_2, 0x45), @@ -32,13 +33,15 @@ public enum PacketIds { map(ProtocolConstants.MINECRAFT_1_19_4, 0x5B), map(ProtocolConstants.MINECRAFT_1_20_2, 0x5D), map(ProtocolConstants.MINECRAFT_1_20_4, 0x5F), - map(ProtocolConstants.MINECRAFT_1_20_6, 0x61) + map(ProtocolConstants.MINECRAFT_1_20_6, 0x61), + map(ProtocolConstants.MINECRAFT_1_21_2, 0x68) ), RESET_SCORE( map(ProtocolConstants.MINECRAFT_1_20_3, 0x42), - map(ProtocolConstants.MINECRAFT_1_20_4, 0x44) + map(ProtocolConstants.MINECRAFT_1_20_4, 0x44), + map(ProtocolConstants.MINECRAFT_1_21_2, 0x49) ), OBJECTIVE_DISPLAY( map(ProtocolConstants.MINECRAFT_1_12_2, 0x3B), @@ -51,7 +54,8 @@ public enum PacketIds { map(ProtocolConstants.MINECRAFT_1_19_4, 0x51), map(ProtocolConstants.MINECRAFT_1_20_2, 0x53), map(ProtocolConstants.MINECRAFT_1_20_4, 0x55), - map(ProtocolConstants.MINECRAFT_1_20_6, 0x57) + map(ProtocolConstants.MINECRAFT_1_20_6, 0x57), + map(ProtocolConstants.MINECRAFT_1_21_2, 0x5C) ), OBJECTIVE( @@ -65,7 +69,8 @@ public enum PacketIds { map(ProtocolConstants.MINECRAFT_1_19_4, 0x58), map(ProtocolConstants.MINECRAFT_1_20_2, 0x5A), map(ProtocolConstants.MINECRAFT_1_20_4, 0x5C), - map(ProtocolConstants.MINECRAFT_1_20_6, 0x5E) + map(ProtocolConstants.MINECRAFT_1_20_6, 0x5E), + map(ProtocolConstants.MINECRAFT_1_21_2, 0x64) ); private final ProtocolConstants.ProtocolMapping[] mappings; From dd66da59a1d94c8fadeb7ce8740dbc7af750a3e8 Mon Sep 17 00:00:00 2001 From: EternalHuman <71584363+EternalHuman@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:59:39 +0300 Subject: [PATCH 2/6] Update ProtocolConstants.java --- .../me/catcoder/sidebar/protocol/ProtocolConstants.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/catcoder/sidebar/protocol/ProtocolConstants.java b/src/main/java/me/catcoder/sidebar/protocol/ProtocolConstants.java index fb6fd25..7c0d0b2 100644 --- a/src/main/java/me/catcoder/sidebar/protocol/ProtocolConstants.java +++ b/src/main/java/me/catcoder/sidebar/protocol/ProtocolConstants.java @@ -41,14 +41,19 @@ public class ProtocolConstants { public static final int MINECRAFT_1_19_4 = 762; public static final int MINECRAFT_1_20 = 763; + public static final int MINECRAFT_1_20_1 = 763; public static final int MINECRAFT_1_20_2 = 764; public static final int MINECRAFT_1_20_3 = 765; public static final int MINECRAFT_1_20_4 = 765; + public static final int MINECRAFT_1_20_5 = 766; public static final int MINECRAFT_1_20_6 = 766; + public static final int MINECRAFT_1_21 = 767; + public static final int MINECRAFT_1_21_2 = 768; + public static final int MINIMUM_SUPPORTED_VERSION = MINECRAFT_1_12_2; - public static final int MAXIMUM_SUPPORTED_VERSION = MINECRAFT_1_21; + public static final int MAXIMUM_SUPPORTED_VERSION = MINECRAFT_1_21_2; @Getter @RequiredArgsConstructor From 84e0536869b6b1187c1799368034546af754769c Mon Sep 17 00:00:00 2001 From: EternalHuman <71584363+EternalHuman@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:00:11 +0300 Subject: [PATCH 3/6] Update MinecraftProtocolVersion.java --- .../sidebar/util/version/MinecraftProtocolVersion.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/me/catcoder/sidebar/util/version/MinecraftProtocolVersion.java b/src/main/java/me/catcoder/sidebar/util/version/MinecraftProtocolVersion.java index a88ecff..eb95540 100644 --- a/src/main/java/me/catcoder/sidebar/util/version/MinecraftProtocolVersion.java +++ b/src/main/java/me/catcoder/sidebar/util/version/MinecraftProtocolVersion.java @@ -58,11 +58,18 @@ private static NavigableMap createLookup() { map.put(new MinecraftVersion(1, 20, 0), ProtocolConstants.MINECRAFT_1_20); + map.put(new MinecraftVersion(1, 20, 1), ProtocolConstants.MINECRAFT_1_20_1); + map.put(new MinecraftVersion(1, 20, 2), ProtocolConstants.MINECRAFT_1_20_2); map.put(new MinecraftVersion(1, 20, 3), ProtocolConstants.MINECRAFT_1_20_3); map.put(new MinecraftVersion(1, 20, 4), ProtocolConstants.MINECRAFT_1_20_4); + map.put(new MinecraftVersion(1, 20, 5), ProtocolConstants.MINECRAFT_1_20_5); map.put(new MinecraftVersion(1, 20, 6), ProtocolConstants.MINECRAFT_1_20_6); + map.put(new MinecraftVersion(1, 21, 0), ProtocolConstants.MINECRAFT_1_21); + map.put(new MinecraftVersion(1, 21, 1), ProtocolConstants.MINECRAFT_1_21); + map.put(new MinecraftVersion(1, 21, 2), ProtocolConstants.MINECRAFT_1_21_2); + return map; } From e84447aff17e4ec6a5d709f8cc3de8838e752a8d Mon Sep 17 00:00:00 2001 From: EternalHuman <71584363+EternalHuman@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:04:10 +0300 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 78c61a6..dd2c166 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@

Build License -Minecraft Versions +Minecraft Versions

* [Features](#features) From f75a39f84bb7aa017aa90320d98a61c69a37daba Mon Sep 17 00:00:00 2001 From: EternalHuman <71584363+EternalHuman@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:04:56 +0300 Subject: [PATCH 5/6] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dd2c166..6dfdd78 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ ![Sidebar](https://github.com/CatCoderr/ProtocolSidebar/raw/master/assets/sidebar.gif) -⚠️ **Note**: starting from **6.2.7-SNAPSHOT** version, the repository has been moved to https://catcoder.pl.ua/snapshots. +⚠️ **Note**: starting from **6.2.8-SNAPSHOT** version, the repository has been moved to https://catcoder.pl.ua/snapshots. You can find URL for Maven and Gradle in the [Adding to your project](#adding-to-your-project) section. @@ -69,7 +69,7 @@ or [maven-shade-plugin](https://maven.apache.org/plugins/maven-shade-plugin/) (f me.catcoder bukkit-sidebar - 6.2.7-SNAPSHOT + 6.2.8-SNAPSHOT ``` @@ -82,7 +82,7 @@ repositories { ``` ```groovy dependencies { - implementation 'me.catcoder:bukkit-sidebar:6.2.7-SNAPSHOT' + implementation 'me.catcoder:bukkit-sidebar:6.2.8-SNAPSHOT' } ``` @@ -95,7 +95,7 @@ repositories { ``` ```kotlin dependencies { - implementation("me.catcoder:bukkit-sidebar:6.2.7-SNAPSHOT") + implementation("me.catcoder:bukkit-sidebar:6.2.8-SNAPSHOT") } ``` From c7e400c90f766bef685576f7b16e74dbb14e804f Mon Sep 17 00:00:00 2001 From: EternalHuman <71584363+EternalHuman@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:05:32 +0300 Subject: [PATCH 6/6] Update build.gradle.kts --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 48b3afb..9e79278 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "me.catcoder" -version = "6.2.7-SNAPSHOT" +version = "6.2.8-SNAPSHOT" description = "Powerful feature-packed Minecraft scoreboard library" val adventureVersion = "4.16.0"