`Willowy^ Posted April 18, 2010 Posted April 18, 2010 Mporei kapios na m dosi ena java code pou na leei otan mpenei enas gm admin na to kanei anccounce :D? Quote
0 Vkouk Posted April 18, 2010 Posted April 18, 2010 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 # ========================== # Quote
Question
`Willowy^
Mporei kapios na m dosi ena java code pou na leei otan mpenei enas gm admin na to kanei anccounce :D?
1 answer to this question
Recommended Posts
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.