Line breaks in event.setKickMessage()? (Bukkit)

Any help topics that don't fit in the current categories can go here.
Post Reply
User avatar
offluffy
Posts: 65
Joined: Tue Mar 20, 2012 7:04 am

Line breaks in event.setKickMessage()? (Bukkit)

Post by offluffy »

I have my LoginListener set to fetch the reason a user has been banned from a file, but for someone who is temp banned and has not waited the duration of that ban, I want to display how long they have left, and the reason under that. Is it possible to insert line breaks into the event.setKickMessage() ? And on a side note, can you use the formatting such as underlines and bold in the setKickMessage? I would test this myself, but I doubt it would work until I tied up all the loose ends and make sure that it can indeed access the conditional statement where this is used. Thanks in advance! - OffLuffy
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Line breaks in event.setKickMessage()? (Bukkit)

Post by jacek »

I have seen colours before and the text pretty much everywhere uses the same code to render it so I would guess that you could.

As for line breaks, there is no such thing in Minecraft :(
Image
Post Reply