ChatItem - Display items in chat! icon

ChatItem - Display items in chat! -----

Display items in chat! Hover over them to see info and name. Supports ALL chat formatting plugins.



The deep search fix
I was in a hurry when I released the last update, so one major bug slipped through: The plugin wouldn't work for most plugins.
As some of you might have already realized, the plugin's original idea is that instead of editing a chat event, it intercepts outgoing chat packets from the server. This means it will work for ANY message the client receives. However, those messages sent in packets are wrapped in JSON. My plugin's core consists of a class whose sole purpose is to parse the JSON strings of the packet into another JSON string which replaced existing occurences of placeholders with their replacement. However, it look like I only made it to search the JSON String in a "shallow" way. Here's an example to show you what I mean:
While this would be parsed properly:
http://i.imgur.com/3dTTDBk.png
This wouldn't!
http://i.imgur.com/DltcGaB.png

All of this because my original code would only look for a text element inside each object of the JsonArray, while, as you can see, the other objects contains no text field, rather another "extra" array with a text object inside it. This time, I modified my code to recursively search the entire JSON string. It will take a bit more time for the parser to work, but that shouldn't be an issue anyway as it will only postpone the chat for about 1-2 ms, and as it's running in an async thread, it should have no impact on actual server performance.
With that fixed, the new update is here ;)
----------, Oct 5, 2016
Resource Information
Author:
----------
Total Downloads: 78,997
First Release: Feb 26, 2016
Last Update: Nov 7, 2024
Category: ---------------
All-Time Rating:
146 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings