Jump to content

Question

1 answer to this question

Recommended Posts

  • 0
Posted
Index: /Server/Ventic's_IL_GS/java/net/sf/l2j/Config.java
===================================================================
--- /Server/Ventic's_IL_GS/java/net/sf/l2j/Config.java (revision 367)
+++ /Server/Ventic's_IL_GS/java/net/sf/l2j/Config.java (revision 368)
@@ -338,4 +338,5 @@
     public static int       ANNOUNCER_MAX_LVL_TO_ANNOUNCE;
     public static boolean   ANNOUNCER_DONATOR_ONLY;
+    public static boolean   ANNOUNCE_GM_LOGIN;
     
     /** Event Settings Parameters */
@@ -1660,4 +1661,5 @@
                 ANNOUNCER_MIN_LVL_TO_ANNOUNCE    = Integer.parseInt(Modifications.getProperty("MinLevelToAnnounce", "0"));
                 ANNOUNCER_MAX_LVL_TO_ANNOUNCE    = Integer.parseInt(Modifications.getProperty("MaxLevelToAnnounce", "80"));
+                ANNOUNCE_GM_LOGIN                = Boolean.parseBoolean(Modifications.getProperty("AnnounceGMLogin", "False"));
             }
             catch (Exception e)
Index: /Server/Ventic's_IL_GS/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- /Server/Ventic's_IL_GS/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 367)
+++ /Server/Ventic's_IL_GS/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 368)
@@ -159,4 +159,16 @@
             }
         }
+        
+        if (Config.ANNOUNCE_GM_LOGIN)
+        {
+        	if (activeChar.getAccessLevel() >= 100)
+        	{
+        		Announcements.getInstance().announceToAll("Admin: "+activeChar.getName()+" has been logged in.");
+        	}
+        	else if (activeChar.getAccessLevel() >= 75)
+        	{
+        		Announcements.getInstance().announceToAll("GM: "+activeChar.getName()+" has been logged in.");
+        	}
+        }

         if (Config.PLAYER_SPAWN_PROTECTION > 0)
Index: /Server/Ventic's_IL_GS/Settings/Modifications.properties
===================================================================
--- /Server/Ventic's_IL_GS/Settings/Modifications.properties (revision 345)
+++ /Server/Ventic's_IL_GS/Settings/Modifications.properties (revision 368)
@@ -102,4 +102,8 @@
# Title Color
TitleColor = 33FFFF
+
+# Announce Admin Name At Login
+# This sctipt will announce when GM/Admin login.
+AnnounceGMLogin = False

# ========================== #

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

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..