Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

@ Commands don't get logged.

Status
Not open for further replies.
Junior Spellweaver
Joined
Jun 27, 2008
Messages
148
Reaction score
0
Code:
private static boolean processCommandInternal(MapleClient c, MessageCallback mc, boolean isGM, String line) {
		MapleCharacter player = c.getPlayer();
		ChannelServer cserv = c.getChannelServer();
		if (line.charAt(0) == '!' && isGM || line.charAt(0) == '@') {
			if(isGM){
                        synchronized (gmlog) {
				gmlog.add(new Pair<MapleCharacter, String>(player, line));
			}
			log.warn("{} used a GM command: {}", c.getPlayer().getName(), line);
                        }
			String[] splitted = line.split(" ");
D; Just replace it, real simple. I was tired of seeing my logs full of @dex, etc etc. Enjoy.
 
Newbie Spellweaver
Joined
Dec 6, 2007
Messages
73
Reaction score
0
Re: [Release] @ Commands don't get logged.

Cool , thanks. added in commandprocessor.java =)
 
Junior Spellweaver
Joined
Jul 19, 2008
Messages
100
Reaction score
0
Re: [Release] @ Commands don't get logged.

Code:
private static boolean processCommandInternal(MapleClient c, MessageCallback mc, boolean isGM, String line) {
		MapleCharacter player = c.getPlayer();
		ChannelServer cserv = c.getChannelServer();
		if (line.charAt(0) == '!' && isGM || line.charAt(0) == '@') {
			if(isGM){
                        synchronized (gmlog) {
				gmlog.add(new Pair<MapleCharacter, String>(player, line));
			}
			log.warn("{} used a GM command: {}", c.getPlayer().getName(), line);
                        }
			String[] splitted = line.split(" ");
D; Just replace it, real simple. I was tired of seeing my logs full of @dex, etc etc. Enjoy.

ok really helpful :winky:
 
Skilled Illusionist
Joined
May 12, 2008
Messages
321
Reaction score
0
Re: [Release] @ Commands don't get logged.

Nice, used it :D
 
Master Summoner
Loyal Member
Joined
Apr 27, 2008
Messages
596
Reaction score
0
Re: [Release] @ Commands don't get logged.

Nice Release, this will help the admins.
 
Experienced Elementalist
Joined
Jul 10, 2008
Messages
299
Reaction score
3
Re: [Release] @ Commands don't get logged.

Ah! i added a userlog for the users on my server. But that's because they have more commands than others
 
Newbie Spellweaver
Joined
Jul 16, 2008
Messages
15
Reaction score
0
Re: [Release] @ Commands don't get logged.

TY Added to my Server =D
 
Status
Not open for further replies.
Back
Top