All pastes #937363 Raw Edit

Unnamed

public java v1 · immutable
·published 2008-03-10 23:37 UTC
rendered paste body
Index: java/config/General.properties===================================================================--- java/config/General.properties	(revision 1794)+++ java/config/General.properties	(working copy)@@ -52,6 +52,19 @@ AdminNameColor = 00FF00 GMNameColor = FFFF00 +# This option allows different title colors for GM and Admin characters.+# Retail: true+GMTitleColorEnabled = True+# Color to use for Admin titles, if enabled. (access level 100+).+# Color to use for GM titles, if enabled. (access level 75+).+# Example:+#		FFFF77 ( Normal [green+blue] ) ff0000 (blue) 00ff00 (green) 0000ff (red)+# Note:+#		The colors are in BGR, NOT RGB, Reverse RGB to get BGR+# Retail: 00FF00, FFFF00+AdminNameColor = 00FF00+GMNameColor = FFFF00+ # Enable GMs to have the glowing aura of a Hero character on # character login.  # GM can do "///hero" on themselves and get this aura voluntarily.Index: java/net/sf/l2j/Config.java===================================================================--- java/net/sf/l2j/Config.java	(revision 1794)+++ java/net/sf/l2j/Config.java	(working copy)@@ -264,8 +264,11 @@     public static boolean	ALT_PRIVILEGES_SECURE_CHECK;     public static int		ALT_PRIVILEGES_DEFAULT_LEVEL;     public static boolean	GM_NAME_COLOR_ENABLED;+    public static boolean	GM_TITLE_COLOR_ENABLED;     public static int		ADMIN_NAME_COLOR;+    public static int		ADMIN_TITLE_COLOR;     public static int		GM_NAME_COLOR;+    public static int		GM_TITLE_COLOR;     public static boolean	GM_HERO_AURA;     public static boolean	GM_STARTUP_INVULNERABLE;     public static boolean	GM_STARTUP_INVISIBLE;@@ -1205,8 +1208,11 @@                 ALT_PRIVILEGES_SECURE_CHECK					= Boolean.parseBoolean(General.getProperty("AltPrivilegesSecureCheck", "True"));                 ALT_PRIVILEGES_DEFAULT_LEVEL				= Integer.parseInt(General.getProperty("AltPrivilegesDefaultLevel", "100"));                 GM_NAME_COLOR_ENABLED						= Boolean.parseBoolean(General.getProperty("GMNameColorEnabled", "False"));+                GM_TITLE_COLOR_ENABLED						= Boolean.parseBoolean(General.getProperty("GMTitleColorEnabled", "False"));                 ADMIN_NAME_COLOR							= Integer.decode("0x" + General.getProperty("AdminNameColor", "00FF00"));+                ADMIN_TITLE_COLOR							= Integer.decode("0x" + General.getProperty("AdminTitleColor", "00FF00"));                 GM_NAME_COLOR								= Integer.decode("0x" + General.getProperty("GMNameColor", "FFFF00"));+                GM_TITLE_COLOR								= Integer.decode("0x" + General.getProperty("GMTitleColor", "FFFF00"));                 GM_HERO_AURA								= Boolean.parseBoolean(General.getProperty("GMHeroAura", "True"));                 GM_STARTUP_INVULNERABLE						= Boolean.parseBoolean(General.getProperty("GMStartupInvulnerable", "True"));                 GM_STARTUP_INVISIBLE						= Boolean.parseBoolean(General.getProperty("GMStartupInvisible", "True"));Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java===================================================================--- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(revision 1794)+++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(working copy)@@ -170,6 +170,13 @@                 else if (activeChar.getAccessLevel() >= 75)                     activeChar.getAppearance().setNameColor(Config.GM_NAME_COLOR);             }+            if (Config.GM_TITLE_COLOR_ENABLED)+            {+                if (activeChar.getAccessLevel() >= 100)+                    activeChar.getAppearance().setTitleColor(Config.ADMIN_TITLE_COLOR);+                else if (activeChar.getAccessLevel() >= 75)+                    activeChar.getAppearance().setTitleColor(Config.GM_TITLE_COLOR);+            }         }          if (Config.PLAYER_SPAWN_PROTECTION > 0)