Just like the title describes it, a simple plugin that logs every command used by the players! Or if possible, a config of only certain groups or OP status command log, using bPerm groups. Using java logger, Showing Playername and the command? Ex. [Date/Time]: Strupan: /item [Date/Time]: Strupan: /god etc.
http://dl.dropbox.com/u/44919560/plugins/CommandLog.jar http://i.minus.com/1328058481/QcOQgsWrOtbkYgil-FzWwA/dbedpMaNiGEBX0.jar Done. Both links work. Its just i'm switching to a hosting site Any player with permission Code: commandlog.message will also get a message when a command is executed.
Speaking of 'CommandLog' this was actually something someone already requested, and I picked up on it but so did someone else, the topic is posted in the submissions here: http://forums.bukkit.org/threads/ch...-time-someone-types-a-command-1-0-1-r1.57419/ I'll be probably contributing to that project (if possible or allowed by the author) with an onCommand() function as well as a HashMap that isn't included in the source for toggling besides permissions. This isn't to say that ThatBox didn't make anything functional for now, but this is something that'll most likely keep updated.
You're right about that! It could easily be added though! I've still yet to get together with the author of it to add some things to the source, it'd be a lot easier if it was GitHub based.
Thanks, ThatBox, and Wolfy, btw Box, is it okay if you provide a source with that? I am really interested in learning how you log them with java logger if that is what your using. Quick question box, where does the log get saved to?
If you want to log something to the console you just use: public static Logger log = Logger.getLogger("Minecraft"); log.info(date + event.getPlayer.getName() + " executed "+commandLabel); To broadcast a message to certain users: Bukkit.broadcast(String, permission); I assume that's what you mean by logging though, unless you're talking about logging to a file, which would be different.
Forgot that part. /facepalm. Getting on it right away. EDIT: Couldn't do it. I have always had trouble with the IO. sorry.
Awh, so what does commandlog actually do? I mean ain't it the whole point of doing so though? Thanks Bump? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Printing it out where though? Just in game? Or.. I don't really understand. Does the command log that you recommanded contain a log? Or at least add to to server log?
Code: log.info(date + event.getPlayer.getName() + " executed "+commandLabel); This would print out in the console. Code: Bukkit.broadcast("Message", permission.node); This would broadcast to both in-game and console. As for how the one made for you functions, I've no idea. As far as I understand he wasn't able to get it to write to a file.
Thanks for the help wolfy, as for commandlog, is there possible way to disable broadcast to global but just show up in console? That way it will log itself in the server log yeah?
If you *just* want it to broadcast to the console and no one in game, you'd go with the first method. ^_^
Well the thing is, I am not coding it or have any experience yet lol. But I was just wondering if command log has that event to be disabled?
I am asking about the one you recommanded lol http://forums.bukkit.org/threads/ch...-time-someone-types-a-command-1-0-1-r1.57419/
Unless you have the permission 'commandlog.notify" you won't see it in-game, and it's logged to the console as well.
search the forums for PlgLogCmd I like all of Plg's plugins ,and if I remember correctly (its been awhile so I don't remember 100%) it logs commands in the server console (which gets saved to server.log)