diff --git a/README.md b/README.md
index 78c61a6..6dfdd78 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
-
+
* [Features](#features)
@@ -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")
}
```
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"
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;
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
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;
}