Jump to content
  • 0

how do that gms dont get clan leader color?


Question

Posted

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

5 answers to this question

Recommended Posts

  • 0
Posted

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);

}

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock