diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/ChatDecorationResult.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/ChatDecorationResult.java
new file mode 100644
index 000000000..5d253885a
--- /dev/null
+++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/ChatDecorationResult.java
@@ -0,0 +1,39 @@
+/*
+ * This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion
+ * Copyright (C) 2016-2022 ViaVersion and contributors
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+package com.viaversion.viaversion.protocols.protocol1_19_1to1_19;
+
+import com.google.gson.JsonElement;
+
+public final class ChatDecorationResult {
+
+ private final JsonElement content;
+ private final boolean overlay;
+
+ public ChatDecorationResult(final JsonElement content, final boolean overlay) {
+ this.content = content;
+ this.overlay = overlay;
+ }
+
+ public JsonElement content() {
+ return content;
+ }
+
+ public boolean overlay() {
+ return overlay;
+ }
+}
diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/Protocol1_19_1To1_19.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/Protocol1_19_1To1_19.java
index ffd9e2d61..71f26dcf6 100644
--- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/Protocol1_19_1To1_19.java
+++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/Protocol1_19_1To1_19.java
@@ -116,14 +116,20 @@ public final class Protocol1_19_1To1_19 extends AbstractProtocol 1) {
data[0] = 1;
} else if (data.length == 0) { // Or the version is omitted (default version would be used)
- data = new byte[] { 1 };
+ data = new byte[]{1};
wrapper.set(Type.REMAINING_BYTES, 0, data);
} else {
Via.getPlatform().getLogger().warning("Received unexpected data in velocity:player_info (length=" + data.length + ")");
@@ -281,11 +287,10 @@ public final class Protocol1_19_1To1_19 extends AbstractProtocolget("element").get("chat");
@@ -294,7 +299,7 @@ public final class Protocol1_19_1To1_19 extends AbstractProtocolget("element").get("overlay");
if (chatData == null) {
// Either narration or something we don't know
- return false;
+ return null;
}
overlay = true;
@@ -302,9 +307,7 @@ public final class Protocol1_19_1To1_19 extends AbstractProtocol