Inactive [SEC] Log v0.8.2 - A lightweight alternative to BigBrother [PERMISSIONS] [1597]

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

  1. Offline

    pokepal101

    MOVING TO BUKKITDEV

    Log - A lightweight alternative to BigBrother.
    Version: v0.8.2
    NOTE: Users have reported problems using GroupManager.

    Log is a plugin that logs block changes. Currently it only records break and place events.
    Being the Bukkit plugin creator n00b I am, I probably made some n00bish mistakes, but it works, anyway.
    Compatible with 617 onwards. Latest build officially tested on 1597.

    Features:
    • Logs block place and destroy events
    • Lets you look up block place and destroy events using a stick
    • Permissions support
    • Block type/material logging - NEW IN 0.4
    • A block to check air and other non-clickable blocks - NEW IN 0.8.2, now works!
    • PLANNED: Auto-delete support - prevent buildup of old stuff
    • POSSIBLE: Rollback?
    • Plaintext buffered SQL alternative to prevent memory leaks - NEW IN 0.5
    How to use:

    How to use (open)

    • 1) Install.
    • 2) Ensure you have the correct permissions (see below)
    • 3) Right click block with stick. DING!
    • 4) If you want to check who destroyed a block, place a block there and right-click that.
      • 4a) Alternatively, "place" a bone where the block would be.
    • 5) To clean the database of all old entries, type '/log clean <time>', replacing <time> with a time unit (15m, 24h, 30d)
    • 6) To completely purge the database of all entries (when you start a new world or something), type '/log purge'


    Permissions:
    Permissions (open)

    • To use the stick lookup, you must have the 'log.stick' permission, or be an op.
    • To use the bone lookup, you must have the 'log.bone' permission, or be an op.
    • A 'log.*' permission is provided for your convenience.


    Admin Permissions:
    Admin Permissions (open)

    • To use '/log purge', you must have the 'log.admin.purge' permission, or be an op.
    • To use '/log clean <time>', you must have the 'log.admin.clean' permission, or be an op.
    • A 'log.admin.*' permission is provided for your convenience.



    Download jar: v0.8.2 | v0.8.1 (Dropbox) | v0.8 (Dropbox) | v0.7.1 (Dropbox) | v0.7 (Dropbox) | v0.6 (Dropbox) (Direct) | v0.5.1 (Dropbox) | v0.5 (Dropbox) UNSTABLE!! | v0.4 (Dropbox) | v0.3 (Dropbox)

    To download, click the link above, wait, then click the "Skip This Ad" button in the top right corner. If the link appears to not work in some way, try refreshing the page. Still not working? Use the (Direct) link (for versions 0.6-).

    Donate:
    Please, please, please, pretty please with sugar on top, donate to support the continued development of this plugin:
    [​IMG]

    Source Code: v0.8.2 | v0.7(.1) (Dropbox) | v0.6 (Dropbox) | v0.5.1 (Dropbox)
    For versions prior to 0.5, source code is packaged in the jar file.

    Changelog:
    Changelog (open)

    Version 0. 8.2:
    • "Added" bone lookup! Yippee!
    Version 0.8.1:

    • Fixed incorrect month number error (again)
    Version 0.8:

    • Added '/log purge' and '/log clean <time>' commands
    Version 0.7.1

    • Removed testing code
    • Fixed incorrect month number error
    Version 0.7

    • Made compatible with RB1060
    • Added config file! (plugins/Log/config.properties)
    • Added bone lookup (non-functional ATM due to Bukkit bug - I think)
    • Made compatible with PermissionsBukkit. Compatibility with original Permissions is unknown
    Version 0.6

    • Fixed incorrect version number 'bug' (again)
    • Fixed FileNotFound bug (again)
    Version 0.5.1

    • Fixed major bug with BufferedReader not being reset
    Version 0.5

    • Exams are over and I have begun working on this again (XD)
    • Tested with 953
    • BIG CHANGE: CHANGED OVER FROM SERIALIZED JAVA OBJECTS TO PLAINTEXT
      • Old filename: logdata.db
      • New filename: logdata.db2
      • Old files will be converted once the server starts/restarts.
      • Make sure you delete the old files once converted to prevent confusion.
      • Advantage: Before: 3.5MB. After: 2.8MB
    • And probably some other stuff
    Version 0.4

    • Tested with 733
    • Added more logged information: block ID, date and time
    • NB: Old data files still work (I think)
    • Fixed FileNotFound bug
    • Fixed incorrect version number 'bug'
    Version 0.3

    • Made compatible with Permissions plugin (node "log.stick")
    • Requires you to either have the permission or be an op to use the stick lookup
    • Fixed small grammatical mistake
    Version 0.2

    • Made compatible with 617
    Version 0.1

    • First release


    Videos:
    - JKapFilms

    Known Bugs:

    Please read this before posting about a bug or problem.
    • FIXED IN 0.5 Not shutting down the server correctly causes data in the last session to be lost.
    • FIXED IN 0.5.1 Possibly many bugs in 0.5. Currently testing.
    • FIXED IN 0.6 Stick does not check cache.
    • FIXED IN 0.7.1 AND 0.8.1 Incorrect month number shown. Even though this has been fixed, incorrect entries will still display incorrectly, however.
     
  2. Offline

    nlopez

    I thought I saw someone type that there was a log file in the main directory. I cannot seem to find any sort of text file or folder where I can view the log. Is block changes only viewable in-game via the stick? I was hoping for a log file which I can read through or is saved to.

    Can you indicate where the data is saved to if there is no log file?

    Thank you!
     
  3. Offline

    pokepal101

    *BUZZ* Incorrect.
    There *is* a log file, logdata.db.
    You can probably sense a but coming. I will not disappoint you.
    *But* the file is a serialized Java class, and is not human readable.

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

    StalinEXE

    I'm sorry, I found the problem. I used tab and it broke Permissions and your plugin.
    I'm idiot -_-
     
  5. Offline

    pokepal101

    its alright. we all make mistakes. (except me, of course, i'm awesome)
    just kidding.
     
  6. Offline

    WayGroovy

    I'm having some issues with the plugin forgetting stuff from day to day... it remembers the log info from version 0.2, but it forgets what was modified before my last server restart.

    I am running several plugins, and the McMyAdmin wrapper.

    Full list of plugins I am running is listed on my wiki page (excluding log):
    http://www.mcserverwiki.com/index.php?title=WayGroovys_BTM_Server

    I don't see any file named logdata.db anywhere on my servers file list.

    I went back through my log, and did some testing. It looks like it forgot everything after a
    [SEVERE] java.lang.OutOfMemoryError: Java heap space
    error... server crashed and restarted. server had saved the information from the world, in the world saves, but had not saved the information in the plugin. Does the plugin require a safe reboot to save its data to file, or does it save incrementally, or periodically?

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

    pokepal101

    sadface. I knew this would happen sooner or later. It looks like you are experiencing memory leaks or something. In answer to your quiestion, unfortunately, the plugin only writes the data to logdata.db when the server shuts down. I don't know if a "safe reboot" classifies as a server shutdown though.
    To temporarily fix your problem, try allocating more memory to the server. I'll be researching other less memory intensive ways to store information (not SQL though, SQL sucks, BB is proof of that)
    We apologise for any inconvenience caused by my n00bery.
     
  8. Offline

    Futureproof101

    i cant see who broke the block it jsut says i placed it
     
  9. Offline

    ephesian

    there a way to clear log ? as takes a while to shutdown and load ?
     
  10. Offline

    thedjshow

    Could you please make a config file to this =)
     
  11. How can i save the Logs after a Server restart ?
     
  12. Offline

    pokepal101

    Memory leaks probably, or some other unknown bug. See my above post on memory leaks for a temporary solution (hopefully).

    To clear the log, navigate to the server root directory (where all your server_nogui.bat files and whatnot are) and delete the "logdata.db" file.

    What's there to configure? The only thing I can think of is the "logdata.db" file name, and why would you need to change that? Of course, when I add more features, I will add a way to configure the plugin.

    If by restart, you mean safe restart, where you type "stop" in the console and start the server again: the plugin automatically saves the logs to "logdata.db" when the server shuts down safely. If you mean you click close, or press Control+C, or otherwise kill the process (not responding, power failure, etc): there is currently no way to save the log data between when the server started and when the process was stopped. So stop the server safely with "stop" and restart (safely) often if possible!
     
  13. Offline

    Sir Ducksworth

    Ive noticed that to use the stick you have to be OP and have permisions. If you are not OP and have permisions it will not let you use it. Not sure wether this is intended but I would like it if I could just use permisions.

    Edit: Sorry for the inconvenience. It is working now that i have moved to v4.
     
  14. Offline

    stewie1million

  15. Offline

    pokepal101

    That shouldn't happen. You should only need to either be OP or have the permission. Are you absolutely 100% fair-dinkum sure that you have the correct permission?
    Probably. Haven't tested though.
     
  16. Offline

    Sir Ducksworth

    Sorry for the trouble. It works now. Thnx for trying to help anyways.
     
  17. Offline

    thedjshow

    Fix rollback =)!
     
  18. Offline

    pokepal101

    That'll be in version 1.0. Long time away...
     
  19. Offline

    MartN

    Works great, big thanks :)
    But the Date is wrong...Log shows 04=April, but we have 05 :D
     
  20. Offline

    Sir Ducksworth

    Don't know weather this is possible but, a way to see when the area was blown up would be cool. Maybe even tell me wether it was TNT or creeper and who placed the TNT.
     
  21. Offline

    txomon

    area logging┬┐?
     
  22. Offline

    pokepal101

    Huh. That's not meant to happen... Is that consistent with all dates? If you are using a VPS, make sure the time is set correctly.
    I should be able to do that.

    What's that?

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

    RocksandGems22

    I don't know about you all, but Im using v.4, and when I load the plugin, it starts up with no errors, yet when I use the stick, nothing shows up SOMETHING DOES SHOW UP, yet it seems to be logging the information. It started up successfully. No i am not using permissions, and i am an op.
    Is it because I'm using a non reccomended build of 740+?

    EDIT: Never mind, there are errors. It seems to be looking for permissions? Even when I don't have it, is it a requirement?

    Code:
    2011-05-06 18:00:19 [SEVERE] Could not pass event PLAYER_INTERACT to Log
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
        at org.pokepal101.log.pokepal101.log.CPlayerListener.onPlayerInteract(CPlayerListener.java:24)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:280)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:274)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:744)
        at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
        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)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 14 more
    2011-05-06 18:00:26 [SEVERE] Could not pass event PLAYER_INTERACT to Log
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
        at org.pokepal101.log.pokepal101.log.CPlayerListener.onPlayerInteract(CPlayerListener.java:24)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:280)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:274)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:64)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:433)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        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)
     
  24. Offline

    txomon

    You specify an area in which any event is logged (thought for villages, cities)

    Edit1:

    If you are going to support rollback, you should consider worldedit
     
  25. Offline

    MartN

    No VPS, normal Root with Debian 5.0

    :~$ date
    So 8. Mai 15:07:23 CEST 2011
     
  26. Offline

    PUBLIC xEN3MYx

    Is installing it as simple as putting the .jar in the plugins folder? Cause that's all I did and it doesn't work, please help me, griefing is running rampant on my server!

    This plugin breaks the Wormhole X-Treme plugin, and it doesn't work itself, I would really appreciate it if you would fix that

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

    WayGroovy

    I am also having an issue where my date is showing up one month older than it should. System time reported by mcmyadmin command /servertime displays correctly. I have noticed that my ram usage on reboot has been incrementally increasing, now with cold reboot ram usage up to 291MB, no users, and without the plugin at 150MB ram usage. My logdata.db file is 6.25 MB after a couple of weeks of usage.

    My server's information: http://www.mcserverwiki.com/index.php?title=WayGroovys_BTM_Server

    Do love the plugin, hope it's development continues.
     
  28. Offline

    StalinEXE

    Please, add this function:

    - This block was blown up by creeper, attacking [player]

    I need it...
     
  29. Offline

    Plague

    deleted the PLUS sign from title as it is forbidden to use
    617 is too old, considered inactive.
     
  30. Offline

    ichingpow

    Can you please recompile this and add the correct build number? That would be cool :)

    I also think that this should stay lightweight so no rollbacks or at least an option.

    One feature you should add is chest access logging, if possible :p
     
  31. Offline

    StreetJesus

    Can someone please adopt this awesome plugin?
     

Share This Page