This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
Kzah
Hello,
I have a little question.
I would like a name color different for players in community (alt + B ).
For exemple, a player in a faction has a blue color and an another player has a red color.
After several tests, i have the same results : white, yellow, dark red or orignal blue.
There is a specific list ? Or other color exist ?
Thx !
/* RegionBBSManager.java */
// FACTION if (player.get_faction() == 2) { StringUtil.append(htmlCode, "<font color=\"" + Config.VALAKAS_NAME_COLOR_BBS + "\">", player.getName(), "</font>"); } if (player.get_faction() == 1) { StringUtil.append(htmlCode, "<font color=\"" + Config.ANTHARAS_NAME_COLOR_BBS + "\">", player.getName(), "</font>"); } else { htmlCode.append(player.getName()); }/* Config.java */
VALAKAS_NAME_COLOR_BBS = Integer.decode("0x" + CustomSettings.getString("ValakasNameColorBBs", "003300")); ANTHARAS_NAME_COLOR_BBS = Integer.decode("0x" + CustomSettings.getString("AntharasNameColorBBs", "003366"));4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now