[INACTIVE][INFO] Commands Logging v1.1 - Logs whenever a player uses a command [818]

Discussion in 'Inactive/Unsupported Plugins' started by LRFLEW, Mar 19, 2011.

  1. Offline

    LRFLEW

    Commands Logging - Logs whenever a player uses a command

    This logs whenever a player uses a command, wether or not another plugin uses it, so you can see if other players are using any commands you don't want them to.

    Features:
    • Logs commands by players
    • Log to the server's log and/or a separate log just for commands
    Downloads (to all my projects and source):
    http://lrflew.ismywebsite.com/bukkit.html
    Mirror:
    http://dl.dropbox.com/u/22202470/ComLog.jar
    Source Code: http://dl.dropbox.com/u/22202470/ComLog.zip

    Changelog:
    • 1.1: Removed redundant source code hidden in the jar file
    • 1.0: fixed file access for new standard, changed comments in settings file, and added better messages for invalid settings.
    • 1.b: added experimental new-file logging. Please test!
    • 0.2: added ebean dependency
    • 0.1: Initial release. Reports all commands.
     
    Phaedrus, g_BonE and weasel5i2 like this.
  2. Offline

    Cookies326

    Does this work as of the latest Craftbukkit?(684)
     
  3. Offline

    nubpro

    probably not
     
  4. Offline

    LRFLEW

    Probably yes :p. I have yet to run into any issues (except 1.5 :p)
    and I remember them (the big guys) saying nothing should be broken.

     
  5. Offline

    andrewkm

    Thank you for great plugin!
    Just tested fully with [740] and CommandsLogging [0.2]
    Working great and was just what i was looking for.
    -
    Small Request:
    Permissions compatibility, so I can chose to log by group instead of everyone. I use economy system and really dont care much about some groups and what commands they use, and then there are those that have many powers and i would rather log them only. Would probably reduce system hog ect... I just really want to log a couple groups, no more.
    Also if possible make it so it only logs certain commands. like a list of commands to put into the config that you want logged would be great! :)
     
  6. Offline

    link2110

    not sure if this is a known/reported error but:
    Code:
    2011-05-03 06:22:11 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to Commands Logging
    java.lang.NullPointerException
    	at com.LRFLEW.bukkit.comlog.ComLog$PlayerEvents.onPlayerCommandPreprocess(ComLog.java:84)
    	at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:230)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:667)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
    	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    	at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    CB740 ComLog 0.2
     
  7. Offline

    The PC Tech Guy

    A feature suggestion: alerting OPs in-game of commands used - or a command to report commands used by a certain person to OPs.
     
  8. Offline

    LRFLEW

    I can't find onCommandPreproccess() in the javadocs anymore. If they removed it, I will be SO angry, as this breaks both Unknown Command and Commands Logging.

    I'm looking into it...
     
  9. Offline

    link2110

    Well if it does, then this also affects BigBrother too, although not the the same extent. I REALLY love your plugins, hope you can get it fixed :D
     
  10. Offline

    Plague

    considered inactive
     
  11. =(
    Someone needs to add this into an essentials or something.
     
  12. Offline

    MonsieurApple

    Marked as active.
     
  13. Offline

    LRFLEW

    Truth be told, I wouldn't mind giving up this project to essentials (I have a lot on my plate :p). I might ask the dev of essentials if he wants to incorporate this :).
     
  14. Offline

    Flatliner

    I sincerely hope this plugin doesn't get sucked into essentials as I find this to be very useful and I've no plans to ever use essentials.
     
    The PC Tech Guy likes this.
  15. Offline

    H_J_446

    could you make it use a seperate log file for each user and also log what IP the logged in as?
    or has this already been implemented if so... luv u :p
     
  16. Offline

    LRFLEW

    I actually wrote the "separate logs per player" and it's in testing. The IP is in the major logs, but I can add it to the personal logs too if you want.
     
  17. Offline

    H_J_446

    yeah it would be useful as i have some annoying ppl on my server attempting to login as other players as my server is in offline mode. Also could you make it log when the player logs in and out aswell so if anything goes off while i am away i instantly know that the person logged out before say some griefing was done. i want it to log something like:

    Code:
    [SESSION1] [Time session Started]
    2011.07.28.13.50.52: H_J_446 Logged In On [192.168.0.50]
    2011.07.28.13.50.52: H_J_446 Used Command /item 50 64
    [END OF SESSION] [Time Session Finished]
    [SESSION2][Time session Started]
    2011.07.28.13.50.52: H_J_446 Logged In On [77.133.109.44]
    2011.07.28.13.50.52: H_J_446 Used Command //fill 46 100000 100000
    2011.07.28.13.50.52: H_J_446 Used Command /item 76 64
    [END OF SESSION][Time Session Finished]
    Also what do you type in the properties file to get it todo a seperate log for each user?
    because i want to give it a shot :D
     
  18. Offline

    LRFLEW

    It already logs in and out times for personal logs, but it does it more like so:
    Code:
    2011.07.14.21.15.48: [Player Joined]
    2011.07.14.21.15.51: used command "/apple"
    2011.07.14.21.16.01: [Server Stopped]
    2011.07.14.21.16.01: [Server Started]
    2011.07.14.21.16.06: [Server Stopped]
    2011.07.14.21.24.36: [Player Joined]
    2011.07.14.21.24.44: used command "/hello"
    2011.07.14.21.25.11: used command "/pvp wha?"
    2011.07.14.21.25.31: [Player Left]
    in a file at "plugins/Command Logging/players/<player>.txt"
    (note, this is a part of my real log during testing :p)

    I haven't released the testing one yet. It will be released soon (currently, I'm on an out-of-state trip, so it won't be within the next couple of days)
     
  19. Offline

    andrewkm

    @LRFLEW
    Im very interested in this plugin. I remember once removing it due to a couple lag / cpu usage issues. Have these improved? As well is 1000CB compatible?
     
  20. Offline

    H_J_446

    oh i feel stupid now...
     
  21. Offline

    andrewkm

    @LRFLEW
    Also would be nice to select a different logging location, it would reduce HDD lag i assume. I have many HDDs to spare and use one of them for logging.

    @LRFLEW
    Nevermind seems the lag issues are still here.
    Many other plugins log to HD and dont lag, this one is however. Weird.
    My settings only had logging to file, no console, and my flush was at 60 seconds.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  22. Offline

    LRFLEW

    Can you point me to the other plugins? I might be able to limit the lag if I see what they did.

    ah :). Since I'm on a one HDD laptop, I didn't think of it. I was mostly thinking people would want to keep it all in the same folder as everything else, but I'll see about adding location variables :).

    I think this whole "build * compatible" thing is stupid. In the earlier stages of Bukkit, the API was changing constantly (counter to what the point of an API is suppose to do :p ), however, the basic api for this hasn't changed in at least 200 builds (even more really). I list the build number I built the latest version on (with it's relative bukkit.jar) and imply that it still works until proven otherwise :p.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  23. Offline

    andrewkm

    Plugins that log to HDD are as follows for me (From most activity to least):
    Essentials = 2.5.6 dev build (logging trade sign activity to trade.log file) <- extremely often, even more then your plugin would do. I have an intensly active economy on the server, and that log is HUGE!
    NoCheat 1.11b (logging NC activity to nocheat.log file) <- however not as often
    Votifier 1.4 (logging to votes.log) <- Nowhere near as active.

    ---------------
    I think the main thing i would love with this plugin would be logging to another HDD. I have many (Including one which i use strictly for stuff like this, including dynmap) and am running on a huge DEDI. There is no reason it should ever lag :p Dual E5620s, 24GB of ram. Yet once i drop in your plugin the complaints start up D= *crys* I would really love command logging however, very important for me.

    Btw plugin worked fine on 1036. You should update your thread title for [1000] :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  24. Offline

    LRFLEW

    Try setting it to 0. I think the other plugins don't flush regularly (like mine does) and avoids this problem. I'm going to do some research into persistence and replace the flush time script altogether.

    EDIT: or finds lulls in HD usage. Research time :p
     
  25. Offline

    andrewkm

    Thank you very much as this plugin would be highly useful to my server. The path to another HDD being most important in my opinion.
     
  26. Offline

    andrewkm

    @LRFLEW any news on this?
     
  27. Offline

    mpric44

    thanks this help's alot :)
     
  28. Offline

    dse.dse

    I can't get the plug in to log anything but when the server started and stopped. Running latest Bukkit version 1337 with 1.8.1 on Windows server, and just downloaded this plugin. The only thing in the logs.txt file is:
    2011.10.29.23.06.15: [Server Started]
    2011.10.29.23.12.30: [Server Stopped]


    I just dropped the .jar in /plugins, and it created the Command Logging folder. But it did not create any players folder like :
    I also do not see any folder named: "plugins/Command Logging/players/<player>.txt"

    The settings are set to :
    main-log=true
    sub-log=true

    What am I doing wrong?

    Dan
     
  29. This plugin is old that's why. Use the real stuff from Mr. Plague.

    http://forums.bukkit.org/threads/admn-plglogcmd-v1-0-log-player-commands-1185.16963/
     
  30. Offline

    resba

    Inactive, Moved.
     

Share This Page