Ok yaml isn't happy with \n, use %nl% instead! #898

This commit is contained in:
Gabriele C 2016-08-11 22:54:13 +02:00
parent 2f9a4e0eda
commit 67d53d0c3c
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ public class Messages implements SettingsDependent {
} }
private static String[] formatMessage(String message) { private static String[] formatMessage(String message) {
String[] lines = message.split("\\n"); String[] lines = message.split("%nl%");
for (int i = 0; i < lines.length; ++i) { for (int i = 0; i < lines.length; ++i) {
lines[i] = ChatColor.translateAlternateColorCodes('&', lines[i]); lines[i] = ChatColor.translateAlternateColorCodes('&', lines[i]);
} }

View File

@ -1,6 +1,6 @@
# Sample messages file # Sample messages file
unknown_user: 'We''ve got&nnew lines&nand '' apostrophes' unknown_user: 'We''ve got%nl%new lines%nl%and '' apostrophes'
unsafe_spawn: '&cHere we have&bdefined some colors &dand some other &lthings' unsafe_spawn: '&cHere we have&bdefined some colors &dand some other &lthings'
reg_voluntarily: 'You can register yourself to the server with the command "/register <password> <ConfirmPassword>"' reg_voluntarily: 'You can register yourself to the server with the command "/register <password> <ConfirmPassword>"'
usage_log: '&cUsage: /login <password>' usage_log: '&cUsage: /login <password>'