hameleon0128 Posted February 3, 2019 Share Posted February 3, 2019 Hello comrades. I went to one server, and there is a message box with server rules. And two buttons accept and reject. I want to make a window with rules on my server too. But I dont know how. Tell me what is it? What is the mod or server setting? Link to comment Share on other sites More sharing options...
SylenThunder Posted February 3, 2019 Share Posted February 3, 2019 It's in the server config.xml. <property name="ServerLoginConfirmationText" value="[ff0000]By joining this server, you agree to follow the server rules.[-] [FFC300]The Golden Rule applies.[-] We're all here to have fun, so respect other players and staff. [FFC300]Don't cheat.[-] This includes all forms of cheating. You can get banned and that's not fun. [FFC300]Please speak respectfully in chat.[-] We shouldn't have to tell you that racist or insulting comments are bad. Our admins will use their judgement about how you speak in chat. If you are warned, stop or the next step is banning. [FFC300]We are a PvE server.[-] Friendly fire is off. If you manage to kill another player, sooner or later you'll be banned. If you're here to play and have fun, come on inside! We use [4FBEE5]XYZ Server Manager[-] [00cc00]https://yourwebsiteurl.com/goes/here[-] for more information. Join us on Discord at[1E90FF] https://discord.gg/rand0mnumb3rs[-]" /> Line breaks and all. The sections like [FFC300] make the text inside colored. [-] Link to comment Share on other sites More sharing options...
SylenThunder Posted February 3, 2019 Share Posted February 3, 2019 Here's what that code above looks like in-game. Link to comment Share on other sites More sharing options...
hameleon0128 Posted February 4, 2019 Author Share Posted February 4, 2019 It's in the server config.xml. <property name="ServerLoginConfirmationText" value="[ff0000]By joining this server, you agree to follow the server rules.[-] [FFC300]The Golden Rule applies.[-] We're all here to have fun, so respect other players and staff. [FFC300]Don't cheat.[-] This includes all forms of cheating. You can get banned and that's not fun. [FFC300]Please speak respectfully in chat.[-] We shouldn't have to tell you that racist or insulting comments are bad. Our admins will use their judgement about how you speak in chat. If you are warned, stop or the next step is banning. [FFC300]We are a PvE server.[-] Friendly fire is off. If you manage to kill another player, sooner or later you'll be banned. If you're here to play and have fun, come on inside! We use [4FBEE5]XYZ Server Manager[-] [00cc00]https://yourwebsiteurl.com/goes/here[-] for more information. Join us on Discord at[1E90FF] https://discord.gg/rand0mnumb3rs[-]" /> Line breaks and all. The sections like [FFC300] make the text inside colored. [-] It is very strange that it does not support Cyrillic. Although on other servers I saw the message in this window in Russian letters. Is it possible to somehow change the font or encoding? Link to comment Share on other sites More sharing options...
Random_ Posted February 9, 2019 Share Posted February 9, 2019 The linebreaks did not working for me. What is the correct code for linebreak? (The font colours working) Link to comment Share on other sites More sharing options...
SylenThunder Posted February 9, 2019 Share Posted February 9, 2019 I don't believe changing the font is possible. No code. Just have it in the config file exactly like that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.