question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What steps will reproduce the problem?

  1. Running Your plugin and a custom plugin using JSON chat ( TextComponent(); )
  2. It doesn’t brake the plugin just pumps out 700 rows of errors each time you click/hover or anything else json related

What were you expecting to happen? What happened instead?

Should happend: No errors and my Json to be shown normally Actually happend: Alot of Errors and my json displayed normally

What version of the plugin are you using? Type /version <Plugin Name>

PacketListenerAPI_v3.4.2.jar with NickNamer 3.11.4

What Spigot version are you using? Type /version

Spigot 1.9.4

What plugins ae you using? Type /plugins

Plugins

Do you have an error log? Use pastebin.com. If you’re not sure, upload your whole server log

Part involving NickNamer (PacketListener) Partial Log

Did your client crash? Upload errors in .minecraft/logs/latest.log as well

No… Full Log: Full Log

Additional information? (Are you using Bungeecord? Did it work in previous versions? etc.)

Test Server with my own custom plugin.

Code I used that it dislikes: /** * Chat with Hovertext and Actions (Does currently not work on the main server, conflict) * @param p - Player Instance * @param text - String * @param suggest - String (Suggest/Run as command) * @param hoverText - String * @param hoverColor - ChatColor * @param textColor - ChatColor * @param action - boolean (True :: Suggestive Command | False :: Run Command) */ public static void JsonChat(Player p, String text, String suggestText, String hoverText, boolean suggestive){ text = Format(placeholders(text)); hoverText = Format(placeholders(hoverText)); TextComponent message = new TextComponent(text); if(suggestive) message.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, suggestText)); else message.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, suggestText)); message.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(hoverText).create())); p.spigot().sendMessage(message); }

Regards, Thomas

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
InventivetalentDevcommented, Jun 26, 2016

Fixed in version 3.11.7.

0reactions
M9GLiquidcommented, Jun 20, 2016

Solvable Solution: Other servers have to use Package Json (example: FancyMessage) As it does not interfere with other Json Packaging

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON error handling
In cases where a JavaScript Object Notation (JSON) transaction fails, the API Gateway can use a JSON error to convey error information to...
Read more >
HTTP status and error codes for JSON | Cloud Storage
HTTP status and error codes for JSON · 302—Found · 303—See Other · 304—Not Modified · 307—Temporary Redirect · 308—Resume Incomplete · 400—Bad...
Read more >
I've received an "Invalid JSON string" error. What do I do?
An invalid JSON error can occur for many reasons. The most common issue is usually associated with a file upload attempt, and can...
Read more >
JSON Online Validator and Formatter - JSON Lint
The best way to find and correct errors while simultaneously saving time is to use an online tool such as JSONLint. JSONLint will...
Read more >
How to Fix The Invalid JSON Error in WordPress (Beginner's ...
Failure to receive an expected response from the server causes the 'Not a valid JSON response' error in WordPress. Basically, WordPress needs to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found