mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 23:31:33 +01:00
update MCUtil.cmpFromMessage to use proper JSON
This commit is contained in:
parent
b602d093ec
commit
87deb42c1c
@ -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("\\\"") + "\"}");
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
|
Loading…
Reference in New Issue
Block a user