Skip to content

Commit

Permalink
Fixed chat messages not showing up on velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed May 15, 2024
1 parent 7dcd744 commit ca874ad
Show file tree
Hide file tree
Showing 34 changed files with 53 additions and 62 deletions.
2 changes: 1 addition & 1 deletion V1_10/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_10</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_11/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_11</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_12</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_13/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_13</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_13_1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_13_1</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_14/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_14</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_15/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_15</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_16/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_16</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_16_2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_16_2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_16_4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_16_4</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_17/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_17</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_18/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_18</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_18_2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_18_2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_19/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_19</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_19_3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_19_3</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_19_4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_19_4</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_20/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_20</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_20_2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_20_2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_20_3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_20_3</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_20_5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_20_5</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_20_6/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_20_6</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_8</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_8_3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_8_3</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_8_4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_8_4</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_9/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_9</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion V1_9_4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-V1_9_4</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion abstraction/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat-Parent</artifactId>
<version>4.2.10.1</version>
<version>4.2.10.2</version>
</parent>

<artifactId>InteractiveChat-Abstraction</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<groupId>com.loohp</groupId>
<artifactId>InteractiveChat</artifactId>
<name>InteractiveChat</name>
<version>4.2.10.1</version>
<version>4.2.10.2</version>

<description>Shows your item in hand, inventory contents and enderchest contents as well as placeholders in the chat!</description>
<url>https://github.com/LOOHP/InteractiveChat</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
import java.util.concurrent.ConcurrentSkipListMap;
import java.util.regex.Pattern;

@SuppressWarnings("UnstableApiUsage")
public class BungeeMessageSender {

public static final Pattern VALID_CUSTOM_CHANNEL = Pattern.compile("[a-z]+:[a-z0-9_]+");
Expand Down Expand Up @@ -239,7 +238,6 @@ public static boolean permissionCheckResponse(long time, int id, boolean value)
return forwardData(time, 0x0B, out.toByteArray());
}

@SuppressWarnings("deprecation")
public static boolean resetAndForwardPlaceholderList(long time, Collection<ICPlaceholder> placeholderList) throws Exception {
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeInt(placeholderList.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.loohp.interactivechat.proxy.objectholders.BackendInteractiveChatData;
import com.loohp.interactivechat.registry.Registry;
import com.loohp.interactivechat.utils.CustomStringUtils;
import com.loohp.interactivechat.utils.DataStreamIO;
import com.loohp.interactivechat.utils.MCVersion;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.chat.ComponentSerializer;
import org.apache.commons.text.StringEscapeUtils;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;

Expand Down Expand Up @@ -149,7 +149,7 @@ public static CompletableFuture<ServerPingBungee> getPing(ServerInfo server) {
String descriptionAsStr = ChatColor.stripColor(ComponentSerializer.parse(description.toJSONString())[0].toPlainText());
data = (JSONObject) new JSONParser().parse(descriptionAsStr);
} else {
data = (JSONObject) new JSONParser().parse(StringEscapeUtils.unescapeJava(descriptionObj.toString()));
data = (JSONObject) new JSONParser().parse(CustomStringUtils.unescapeUnicode(descriptionObj.toString()));
}
present = (boolean) data.get("present");
version = (String) data.get("version");
Expand Down
Loading

0 comments on commit ca874ad

Please sign in to comment.