You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a player on the game server sends a chat message ending in a backslash (not forward slash), an error is thrown and the message does not reach the Discord server. Here is a snippet of my server log with an example of this:
[15:27:17] [Event Dispatcher Handler/INFO]: [Discord] EbonJaeger» hey do messages with a <backslash> at the end still break?
[15:27:28] [Async Chat Thread - #10/ERROR]: Could not pass event AsyncPlayerChatEvent to DiscordMC v1.4.12
org.bukkit.event.EventException
at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:46) ~[patched_1.11.2.jar:git-Paper-1029]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:74) ~[patched_1.11.2.jar:git-Paper-1029]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.11.2.jar:git-Paper-1029]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) [patched_1.11.2.jar:git-Paper-1029]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499) [patched_1.11.2.jar:git-Paper-1029]
at net.minecraft.server.v1_11_R1.PlayerConnection.chat(PlayerConnection.java:1299) [patched_1.11.2.jar:git-Paper-1029]
at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1214) [patched_1.11.2.jar:git-Paper-1029]
at net.minecraft.server.v1_11_R1.PacketPlayInChat$1.run(PacketPlayInChat.java:39) [patched_1.11.2.jar:git-Paper-1029]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
Caused by: java.lang.IllegalArgumentException: character to be escaped is missing
at java.util.regex.Matcher.appendReplacement(Matcher.java:809) ~[?:1.8.0_121]
at java.util.regex.Matcher.replaceAll(Matcher.java:955) ~[?:1.8.0_121]
at java.lang.String.replaceAll(String.java:2223) ~[?:1.8.0_121]
at eu.manuelgu.discordmc.listener.ChatListener.onAsyncPlayerChat(ChatListener.java:59) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor85.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:44) ~[patched_1.11.2.jar:git-Paper-1029]
... 12 more
[15:27:28] [Async Chat Thread - #10/INFO]: [SMod] Hotasflames» lets find out<backslash>
Messages with a backslash in other spots do not cause this error, though the slash character is stripped from the message in the Discord channel. Likewise it will be stripped from a message from Discord to the Minecraft server. I'm not sure if this is intended behavior, however.
The text was updated successfully, but these errors were encountered:
When a player on the game server sends a chat message ending in a backslash (not forward slash), an error is thrown and the message does not reach the Discord server. Here is a snippet of my server log with an example of this:
Messages with a backslash in other spots do not cause this error, though the slash character is stripped from the message in the Discord channel. Likewise it will be stripped from a message from Discord to the Minecraft server. I'm not sure if this is intended behavior, however.
The text was updated successfully, but these errors were encountered: