All seeing eye.

Discussion in 'Archived: Plugin Requests' started by Imm0rt41, Dec 11, 2011.

  1. Offline

    Imm0rt41

    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
     
  2. Offline

    acuddlyheadcrab

    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.
     
  3. Offline

    Nick22

    I will attempt this tommorow
     
  4. Offline

    Imm0rt41

    @acuddlyheadcrab says he got what i want to work, so yea. you can do it however if you want
     
  5. Offline

    javoris767

  6. Offline

    acuddlyheadcrab

    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 :)
     
  7. Offline

    Imm0rt41

    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.
     
    Last edited by a moderator: May 22, 2016
  8. Offline

    javoris767

  9. Offline

    acuddlyheadcrab

    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
     
  10. Offline

    Imm0rt41

    ok, thanks. add me in skype too, the_basement_nerd
     
  11. Offline

    acuddlyheadcrab

    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
     
  12. Offline

    Imm0rt41

    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!
     
  13. Offline

    acuddlyheadcrab

    Great :)! Sorry for the delay lol
     
  14. Offline

    Imm0rt41

    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
     

Share This Page