Json Error
See original GitHub issueWhat steps will reproduce the problem?
- Running Your plugin and a custom plugin using JSON chat ( TextComponent(); )
- 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
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:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Fixed in version 3.11.7.
Solvable Solution: Other servers have to use Package Json (example: FancyMessage) As it does not interfere with other Json Packaging