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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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