Closed EverNife closed 8 years ago
Thanks for your detailed report.
I have tested this message with a couple different server versions, only on 1.7.x it is broken, 1.8/1.9/1.10 all work correctly. The /tellraw
feature these messages use has been introduced in 1.7, so apparently there was a bug with the \n
in there.
I'll have to see how I can fix this nicely. The solution would be to use a new /tellraw
for each line (after a \n
), but for that I will need to rewrite some parts of the message handling code. Because the usage of 1.7 is still 7.3% (mostly modded servers probably) among AreaShop users I would also like to have this fixed.
Until I have a fix ready you could either stop using the fancy messages (set useFancyMessages
in config.yml
to false
) or remove all [break]
tags from the messages.
PS: It looks like there is a line break after the < AreaShop >
part of your first image, any idea how that happened?
i used a lot of spaces :V
Life calls us to do hard things :D
I have implemented the solution for this problem, you can use a development build if you want to use it immediately. If you find any other issues please let me know :)
ok, i will test it
_First_try_ I tried to break the line at it start; The result is that hid the previous line.
_Second_try_ Break the line in the middle make it to hide until the "place_holder" (If i can call it that...)
_Sequel_ I tried with a lot other manners, like using a single line to break, etc Also I tried to [break] the line in the prefix, did not work too. (make the prefix desappear)
In fact, it seems to hide the part that shows the information from the _region_ In my case, the "Public_Shop01"
Anyway, sorry for the horrible english, i am brazilian T.T
A [break]
needs to be at the end of a line, so after that you need to continue the text on a new line. Let me know if that works.
The prefix has spacebars to "break" line
If use the [break] after the _region_info_ it hide it.
Do you get any errors in the log file? because there might be a problem there. I'll test your message myself to see if I find something.
Getting this error when /as reload
03.09 13:49:49 [Server] INFO Invalid json: Unexpected value at line 1 column 980
Full lang: _HasteBin_ Dont know if it is related :D
It took me a while to figure it out, but I found the error and pushed a fix, a new build can be found on web page I linked above.
Thank You, working well now :D
Sorry, i had not tested in all parts...
This first one is normal, but this one not : /
You cannot use it in greeting messages, those are simply strings that I pass to the greeting
flag in WorldGuard. So I have no idea if that flag of WorldGuard support multiple lines or not, you could try to experiment with /region flag greeting <region> <message...>
to see if you can find a way to add new lines to it.
ty, i will
Normal " \n " would take care of the problem
I changed my code, so it is working now
Okey cool. I did some tests with the development version of AreaShop (which has some changes to the message system), and there it actually already works with [break]
, so the next release version this will be working as intended.
Current behavior
I want to break line **_\n_\ but it is not working
Steps to reproduce (for bugs)
Images
-------_Ingame_-------
-------_lang-cofing_-------
-------_random-default-command-with-original-lang_-------
My environment