You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In spigot 1.9.4 - the \n works perfectly fine as a line-break option, however when trying to support a 1.7.10 server, it prints a cartridge return. As seen below:
These are from the exact same Jar file on both servers.
Additionally to test if it is 1.7.10 Spigot I ran the following command as a debug
if (args[0].equals("fancy")) {
Bukkit.getServer().broadcastMessage("This is a test \nAnother test?" + '\n' + "Cookies");
}
and it works just fine.
I'd rather not send back multiple fanciful messages, as it's pretty cool to have 1 big block that's clickable anywhere on the text, acting as 1 fanciful message, so my questions are the following:
Is there a better way to do this?
Is there a built in line-break option for Fanciful API?
Any idea why I'm getting a cartridge return on 1.7.10 but not 1.9.4?
The text was updated successfully, but these errors were encountered:
That's odd. Using \n is the canonical "right way" to insert linebreaks into the message text; I have no idea why it's behaving differently on two different Spigot versions.
Could you send me the JSON string of the FancyMessage on both Spigot versions? You can use FancyMessage.toJSONString() to get the JSON string and then print the result to the console.
Hi! I love Fanciful, and currently use it in a plugin of mine.
I'm using the following code to run a multi-lined reply, while keeping them all wrapped as 1 long line.
In spigot 1.9.4 - the \n works perfectly fine as a line-break option, however when trying to support a 1.7.10 server, it prints a cartridge return. As seen below:
1.7.10 - http://i.imgur.com/shPUcNt.png
1.9.4 - http://i.imgur.com/vWwkRB9.png
These are from the exact same Jar file on both servers.
Additionally to test if it is 1.7.10 Spigot I ran the following command as a debug
and it works just fine.
I'd rather not send back multiple fanciful messages, as it's pretty cool to have 1 big block that's clickable anywhere on the text, acting as 1 fanciful message, so my questions are the following:
Is there a better way to do this?
Is there a built in line-break option for Fanciful API?
Any idea why I'm getting a cartridge return on 1.7.10 but not 1.9.4?
The text was updated successfully, but these errors were encountered: