From 87deb42c1c84a10966f6e62c6bdcdd4d66b0e9f6 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 11 Apr 2016 01:06:28 -0400 Subject: [PATCH] update MCUtil.cmpFromMessage to use proper JSON --- Spigot-Server-Patches/MC-Utils.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/MC-Utils.patch b/Spigot-Server-Patches/MC-Utils.patch index 3efc013358..6d0356e034 100644 --- a/Spigot-Server-Patches/MC-Utils.patch +++ b/Spigot-Server-Patches/MC-Utils.patch @@ -29,7 +29,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + * @return + */ + public static IChatBaseComponent cmpFromMessage(String str) { -+ return IChatBaseComponent.ChatSerializer.a("{text:\"" + REPLACE_QUOTES.matcher(str).replaceAll("\\\"") + "\"}"); ++ return IChatBaseComponent.ChatSerializer.a("{\"text\":\"" + REPLACE_QUOTES.matcher(str).replaceAll("\\\"") + "\"}"); + } + + /**