mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-21 16:19:13 +01:00
Ok yaml isn't happy with \n, use %nl% instead! #898
This commit is contained in:
parent
2f9a4e0eda
commit
67d53d0c3c
@ -142,7 +142,7 @@ public class Messages implements SettingsDependent {
|
||||
}
|
||||
|
||||
private static String[] formatMessage(String message) {
|
||||
String[] lines = message.split("\\n");
|
||||
String[] lines = message.split("%nl%");
|
||||
for (int i = 0; i < lines.length; ++i) {
|
||||
lines[i] = ChatColor.translateAlternateColorCodes('&', lines[i]);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 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 <hings'
|
||||
reg_voluntarily: 'You can register yourself to the server with the command "/register <password> <ConfirmPassword>"'
|
||||
usage_log: '&cUsage: /login <password>'
|
||||
|
Loading…
Reference in New Issue
Block a user