Index: Trunk\L2JStep_CORE\config\Custom\L2JMods.properties
===================================================================
--- Trunk\L2JStep_CORE\config\Custom\L2JMods.properties
+++ Trunk\L2JStep_CORE\config\Custom\L2JMods.properties
@@ -93,4 +93,8 @@
+#-----------------------------------------------
+# Clan Leader Color Title Name #
+#-----------------------------------------------
+# Clan Name Color Enabled?
+ClanLeaderNameColorEnabled = False
+ClanLeaderColor = 00BFFF
+ClanLeaderColorAtClanLevel = 5
+# Clan Title Color Enabled?
+ClanLeaderTitleColorEnabled = False
+ClanLeaderTitle = 00BFFF
+ClanLeaderTitleAtClanLevel = 5
Index: Trunk\L2JStep_CORE\java\com\l2jstep\config.java
===================================================================
--- Trunk\L2JStep_CORE\java\com\l2jstep\config.java
+++ Trunk\L2JStep_CORE\java\com\l2jstep\config.java
@@ -561,4 +561,6 @@
+ public static boolean CLAN_LEADER_COLOR_ENABLED;
+ public static int CLAN_LEADER_COLOR;
+ public static int CLAN_LEADER_COLOR_CLAN_LEVEL;
+ public static boolean CLAN_LEADER_TITLE_ENABLED;
+ public static int CLAN_LEADER_TITLE;
+ public static int CLAN_LEADER_TITLE_CLAN_LEVEL;
@@ -561,4 +561,6 @@
+ CLAN_LEADER_COLOR_ENABLED = Boolean.parseBoolean(L2JModsSettings.getProperty("ClanLeaderNameColorEnabled", "False"));
+ CLAN_LEADER_COLOR = Integer.decode("0x" + L2JModsSettings.getProperty("ClanLeaderColor", "00BFFF"));
+ CLAN_LEADER_COLOR_CLAN_LEVEL = Integer.parseInt(L2JModsSettings.getProperty("ClanLeaderColorAtClanLevel", "1"));
+ CLAN_LEADER_TITLE_ENABLED = Boolean.parseBoolean(L2JModsSettings.getProperty("ClanLeaderTitleColorEnabled", "False"));
+ CLAN_LEADER_TITLE = Integer.decode("0x" + L2JModsSettings.getProperty("ClanLeaderTitle", "00BFFF"));
+ CLAN_LEADER_TITLE_CLAN_LEVEL = Integer.parseInt(L2JModsSettings.getProperty("ClanLeaderTitleAtClanLevel", "1"));
Index: Trunk\L2JStep_CORE\java\com\l2jstep\gameserver\clientpackets\EnterWorld.java
===================================================================
--- Trunk\L2JStep_CORE\java\com\l2jstep\gameserver\clientpackets\EnterWorld.java
+++ Trunk\L2JStep_CORE\java\com\l2jstep\gameserver\clientpackets\EnterWorld.java
@@ -213,5 +213,13 @@
+ // Apply color settings to clan leader when entering
+ if (activeChar.getClan() != null && activeChar.isClanLeader() && Config.CLAN_LEADER_COLOR_ENABLED && activeChar.getClan().getLevel() >= Config.CLAN_LEADER_COLOR_CLAN_LEVEL)
+ {
+ activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_COLOR);
+ }
+
+ if (activeChar.getClan() != null && activeChar.isClanLeader() && Config.CLAN_LEADER_TITLE_ENABLED && activeChar.getClan().getLevel() >= Config.CLAN_LEADER_TITLE_CLAN_LEVEL)
+ {
+ activeChar.getAppearance().setTitleColor(Config.CLAN_LEADER_TITLE);
+ }