Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Discussion' started by siemaeniu500, Aug 27, 2013.
How i can add more than one line in whitelist message in spigot.yml?
Could try \n
It doesn't work
whitelist: You are not whitelisted on this server! \n Blablabla
unknown-command: Unknown command. Type "/help" for help.
server-full: The server is full!
outdated-client: Outdated client!
outdated-server: Outdated server!
Bump. Want to know this too.
Working for me
Make sure you are using double quotes for the message when including \n.
whitelist: "You are not whitelisted on this server!\nSecond line!"
Spigot will change this to the config below, however it's still working for me and I think that syntax is a little bit easier..
You are not whitelisted on this server!
Note: That should actually work outside the Spigot configuration (e.g. in plugins using a YAML configuration) too.
The reason why Spigot is changing the configuration to the config above is probably that Spigot is saving the configuration on every start, and so it will be replaced by the default "style" to get the multiple lines. (There are many ways to get the same result in YAML configurations.) So unless a plugin saves his configuration it will keep as the message in double quotes with /n.
Edit: By the way, it's my first message here
Well, an informative message it is!
Thanks for sharing, that is awesome!
Yea nice work I'm fairly certain it works for everything except in game messages. Multiple lines for in game messages eg player.sendMessage() need to be handled by the plugin it self.
Sorry for the bump but would this support colors?
Try that sign "§" instead of "&"
Thanks this helped a lot!
Actually, § does not work. just use \u00A7<formattingcode>. It works great. Example: \u00A74 would make the text red (4).
Isn't it possible to just run the command /whitelist ingame?
This is for formatting the message the player gets when trying to connect.
I have this problem too.
Read post #5 and #12 and you can get 2 lines and color.