l2redkiller Posted August 23, 2010 Posted August 23, 2010 hey dudes i use a simple clan leader name color system how i do that leader gms dont get the leader color? here my simple code : if (Config.CLAN_LEADER_COLOR_ENABLED) { if (activeChar.getClan() != null && activeChar.isClanLeader()&& activeChar.getClan().getLevel() >= Config.CLAN_LEVEL) activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_COLOR); } Thanks for your help
0 Sindelia Posted August 23, 2010 Posted August 23, 2010 It's because the GM rank color overrides the leader name color. :)
0 l2redkiller Posted August 23, 2010 Author Posted August 23, 2010 i mean how makes it that the GMs dont have the leader color ? they get the leader color but i wanna have it that he dont get it how write it in the file?
0 ServeSATAN Posted August 23, 2010 Posted August 23, 2010 i mean how makes it that the GMs dont have the leader color ? they get the leader color but i wanna have it that he dont get it how write it in the file? you mean if GM is clan leader and color don't must change? i think you must add this if (Config.CLAN_LEADER_COLOR_ENABLED) { if (activeChar.getClan() != null && activeChar.isClanLeader() && activeChar.getClan().getLevel() >= Config.CLAN_LEVEL && !activeChar.isGM()) activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_COLOR); }
0 l2redkiller Posted August 23, 2010 Author Posted August 23, 2010 It works thanks really helpfull :D
Question
l2redkiller
hey dudes i use a simple clan leader name color system how i do that leader gms dont get the leader color?
here my simple code :
Thanks for your help
5 answers to this question
Recommended Posts