What do you want to achieve?
Newline character to appear on kick message.
What is the issue?
I have used multiple ways to add a new line to my kick message however it doesn’t work at all, I’ve tried using brackets and \n neither of those work nor show up on the kick message, heres my code:
USING BRACKETS:
plr:Kick([[
You have been found on our ban database!
[ CONTACT HIGH COMMAND TO APPEAL ]
[ AUTOMATED BAN ]
]])
USING \N:
plr:Kick("You have been found on our ban database!\n\n[ CONTACT HIGH COMMAND TO APPEAL ]\n[ AUTOMATED BAN ]")
What solutions have you tried so far?
I have looked around DevForums for a solution and I haven’t found any, well there are a couple of topics/forums on it however most of them are due to script errors which mine is not.
There are no errors/warnings within the console, the player gets kicked/banned fine however its just that the newline characters don’t work as intended.
I can confirm this is replicated on a lot of games, especially at one I moderate at, there was no lines at all with kick/ban messages. This is definetly something to take up to bug reports. I can’t report bugs yet though, just hoping someone could.
This was recently changed intentionally to fix an exploit, so is expected behavior.
Any sequence of spaces and newlines is now collapsed into a single space character, and the length of kick messages is limited to 200 characters.
Update (August 2024)
The disconnect UI was improved as part of the ban API project. Newlines in kick messages have been restored, and the length limit has been bumped from 200 to 400. (Not my doing, I’m just the messenger.)