I'm looking for a simple plugin that logs ALL commands executed by players to the server console. Some plugins already do that, as in any commands in the plugin that are executed will get logged to console, but there are still a lot of plugins that don't. So I'm looking for a plugin that logs in console all the commands a person issues, including commands like /tell which I don't see in console, as well as logging to a file all commands. Add me in skype if you want to do this, my skype is the_basement_nerd
Are you sure this hasn't been done before? It seems super easy to me EDIT: Well I got a test plugin to work and do this. Although I'm still trying to find a way to get the plugin that uses this command and/or check if it's a valid command. But for now it just prints out anything that has the "/" before it (a command), using the PlayerCommandPreprocessEvent.
Do you need console because this logs them into a database. http://forums.bukkit.org/threads/admn-playerlogger-v2-log-your-players-every-move-♥-935.19208/
Yeah I think I'm just gonna get a list of commands in my code and then use that to check which commands are actually valid. I should be done soon
i use this, but i want realtime knowledge of whats going on make sure it shows up invalid commands too, so that i can tell a person when their doing something wrong. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Oh okay. Well I'm still working on getting all the commands properly because bukkit doesn't have that in it's API for some reason. But i'm close
Well I don't like to make unnecessary delay, so i'll just post the version that logs all messages that are tried to be excuted as commands. I'll finish the plugin part of it later CmdLogger v1.0
works perfectly, exactly as i wanted it: Code: 02:26:49 [INFO] [CMDLOG] Imm0rt41: /ping 02:26:57 [INFO] [CMDLOG] Imm0rt41: /giggity 02:27:02 [INFO] [CMDLOG] Imm0rt41: /this is a command 02:27:09 [INFO] [**Admins Freebuild]<Novice Builder Imm0rt41> this isnt a command /ping 02:27:21 [INFO] Unknown command. Type "help" for help. ping 02:27:23 [INFO] Pong!
now, if YOU wanna keep developement on this, i have more ideas for it, add me in skype and ill talk with you about them. my skype is the_basement_nerd