Jump to content

[Share]Gm Announce Login


'Baggos'
 Share

Recommended Posts

Hello member of maxcheaters.

Announce when GameMaster has logged.

 

config:
# Specified reward item rnd qty
ChampionRewardItemQty = 1

+#---------------------------------------------------------------
+# Gm Announce Login                  
+#---------------------------------------------------------------
+GmAnnounceLogin = True

=====
Index: sf/l2j/config.java
     public static int L2JMOD_CHAMPION_REWARD_QTY;
+   public static boolean			GM_ANNOUNCE_LOGIN;


                L2JMOD_CHAMPION_REWARD_QTY            = Integer.parseInt(L2JModSettings.getProperty("ChampionRewardItemQty", "1"));
+              GM_ANNOUNCE_LOGIN = Boolean.parseBoolean(L2JModSettings.getProperty("GmAnnounceLogin", "false"));

=====
Index: sf/l2j/gameserver/clientpackets/EnterWorld.java
	Quest.playerEnter(activeChar);
	activeChar.sendPacket(new QuestList());

+		        
+		        
+		        if (Config.GM_ANNOUNCE_LOGIN)
+		        {
+		        	if (activeChar.isGM())
+		        	{
+		        		Announcements.getInstance().announceToAll("[GameMaster]: "+activeChar.getName()+" has been logged in.");
+		        	}
+		        }


	if (Config.SERVER_NEWS)

Credits:Me

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



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