JSONMessage
JSONMessage copied to clipboard
A modern version of Fanciful
Hello, There is an error when using JSONMessage: ``` [22:26:54] [Server thread/WARN]: java.lang.ClassNotFoundException: net.minecraft.network.chat.ChatComponentText [22:26:54] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:147) [22:26:54] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:99) [22:26:54] [Server thread/WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) [22:26:54]...
> See Discord thread [here](https://discordapp.com/channels/282207139752050688/282207139752050688/732631909167005838) (in RayzrDev server, join [here](https://rayzr.dev/join)) the conclusion of the above thread is: > ... looks like the correct solution would be to have JSONMessage send...
It would be nice to have a `JSONMessage#replace(String, String/Object)` method witch would replace any appearance of the target String with the provided String/Object (Whichever goes better). Additionally would a `JSONMessage#from(String)`...
Allow JSONMessages to have a feature where you can center the text. It could be a simple `.beginCenter()` and `.endCenter()` or do it as you see fit.