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

    Kirby1

    the new version of essentials group manager (1.8 compatable) broke logs. Please fix if possible. Love this plugin, has done a lot of good for my server.
    Also, If you could make this work with essentials permissions that would be awesome but not as important as just making it work well with 1.8. PLEASE I AM BEGGING YOU!!
     
  3. Offline

    pokepal101

    *sigh*
    Stupid exams.
    Regarding a couple of popular questions:
    1) No, we (I) will not be adding SQL support. I don't like SQL (for some reason).
    2) We (I) am planning on adding rollback, but that won't come for a while (until I get EVERYTHING logged).
    3) Yes, I was planning on adding [12, SAND] type things, but, again, that may not come for a while.

    Version 0.8 coming out later today (maybe 15 mins?). Ironing out a few bugs.

    Version 0.8 XD
    Download: http://dl.dropbox.com/u/26746878/Log0.8.jar
    Changes:
    • Added '/log clean <time>' command
    • Added '/log purge' command (or did we have that before?)
    • Err... Nothing else. It took that long to get those two commands...
    And the bone still doesn't work (I think)

    Version 0.8.1
    Download: http://dl.dropbox.com/u/26746878/Log0.8.1.jar
    Fixed incorrect month number bug (again). Old (incorrect) entries will still display incorrectly, however.

    Thanks to JeanneD4RK for re-reporting this bug.

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

    Siderz

    I love you so much for this!

    Well..if it works, that is.

    I've been searching for ages to find a plugin that logs moves without requiring a MySQL database. I just want it to save to my hard drive.

    I'm apart of the n00bs so I cbb to make a MySQL database.

    So thanks a lot. Time to test it.

    Edit: Also, please don't make it so I need a MySQL database! I've noticed some people have done that.
     
  5. Offline

    Kirby1

    THX for getting it working with 1.8 so fast! and thx for not messing with SQL!
     
  6. Offline

    N3M3S1S357

    I'm loving this plugin! Thanks man!
     
  7. Offline

    Kirby1

    FYI, now working with essentials group manager (1.8 grpmgr version). Thx again!
     
  8. Offline

    Kirby1

    Logs not working with bukit 1183. It works but its not able to load the log file. Get a java error.
    blah balh blah imput string "-3313"
    NVM, database purge fixed it.
    FYI, now working with dev group mamager but not properly. I had to add the permission to each class that I wanted to give it to instead of just the lowest class, so it doesnt seem to work with the inhericence. Working otherwise though an not a big deal, just took me a while to figure out.
     
  9. Offline

    pokepal101

    Does Dev Group Manager use the Bukkit player.hasPermission API?
    If it does, then it should be compatible.

    I am pleased to announce the release of...
    Version 0.8.2
    Download: http://dl.dropbox.com/u/26746878/Log0.8.2.jar
    The long awaited (by me, at least) bone lookup is now here! I blame Bukkit's poor explanation of RIGHT_CLICK_AIR.

    Also, source: http://dl.dropbox.com/u/26746878/Source0.8.2.zip

    This really should've been 0.8.1.1... We're running out of 0.x version numbers.

    I know this is an old post, but I was looking through the comments and couldn't help but point this out:
    The file probably didn't work because at that time, I was using Java Serialization, which doesn't like small changes to the code...

    Ideas for Version 1.0!!!!
    Block data logging, eg (35:1) for orange wool
    Block name logging, eg [35, WOOL] or [35:1, ORANGE WOOL]

    <required> [optional]
    /log r <radius> [time]: Shows all edits in a certain radius
    /log u <user> [time]: Shows all edits by that user
    /log rr <radius> [time]: Rolls back all edits in a certain radius (rr = Rollback Radius)
    /log ru <user> [time]: Rolls back all edits by a certain user (ru = Rollback User)
    /log rru <radius> <user> [time]: Rolls back all edits by a certain user in a certain radius (rru = Rollback Radius User) - can also use '/log rur' for <user> <radius>

    Development will start next-week-ish.

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

    Vaupell

    2 things preventing me from testing, basicly the only 2 things i need atm for 1185+

    - Log radius
    - Rollback radios playername

    Looks promising,. need to replace @Datalog since its not updated..
    and bigbrother have been giving me issues since start of 1.7
     
  11. Please don't get me wrong, I'm not trying to be mean. But honestly, really... this plugin is useless without rollback. Sorry, but that's that.
     
  12. Offline

    ntyGuns

    Am I right in understanding that the log gets reset every time the server restarts? Because that's actually what's happening to me.
     
  13. Offline

    bearsrok123

    Here is a video!
     
  14. Offline

    Mrbeatenbagel

    Yea, i use this for my sever <3 Love you for it, right now, but can you make it so it can also rollback everything that play has done like in big brother? Since big brother is barely working, roll backs would be much appreciated. :)
     
  15. Offline

    bearsrok123

    but would that keep it lightweight?
     
  16. Offline

    Unset

    Data should be stored in "logdata.db2", it is just a yaml file with another extension.
    (you can find this in the same folder as craftbukkit.jar)
    See if that file works, because it should not reset on every server restart.
     
  17. Offline

    peaced

    Is there a way to make it read only ?
    I want it to stop logging new actions, but still be able to read the old entries.
     
  18. someone placed WATER into players lava fountain, i cant see who did it... what a great plugin :D
     
  19. Offline

    AnniKa

    al rollback feature would be nice, so that we can rollback everything that player XYZ does in the time from X to Y.
    i think it would not hard to write.
     
  20. Offline

    oglop

    will it lag whole server within 1 day as BB and log block?
    thank you
     
  21. Offline

    FrozdY

    no rollback?
     
  22. Offline

    Unset

    I like that it uses flatfiles instead of sql.
    Everybody says 'yeah use sql, it's good, sql-support please, because I heard others find it good'
    But for logging plugins like this flatfiles are awesome!
    I think when you place a block in a flatfile, it takes a little less time than adding it to a database
    But when you need to search an item, sql would be faster than flatfiles

    However, you place/remove much more blocks, than you search the log from!
    SO flatfiles are the right choice :D
     
  23. Offline

    arnie231

    ANy chance you could fix the lag issue when selecting a block with a stick :/
     
  24. Offline

    colony88

    Feature request: player log purge: purge the log per player
     
  25. Offline

    fireblade

    Hello, i use the plugin bigbrother but its bugs are outragous. What are the differences between this plugin and big brother?
    Does it log everything bigbrother does and can it rollback? with radius? (my 2 big questions)
     
  26. Offline

    pokepal101

    Right... So you don't know who griefed the s*** out of your house... So you can't ban them...
    Totally useless.


    1) This logs block breaks and block places only. (lightweight)
    2) It cannot rollback, but I am working on that now (version 1.0)
    3) It will have rollback within radius

    Placing water from a bucket isn't counted as a block placement by bukkit, but I'll make sure I add support for that (and signs) in 1.0

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  27. id love that coz in BB i think i was able to see who placed water / lava. I just need a good block log system :)
     
  28. Offline

    Dizkonnekted

    I dont know if it is the same for lava placement (by lava tile or lava bucket) but currently its does not work with either water or lava, so im looking forward to this being added also! hopefully!! please!! thank you :D *gives cake* etc etc

    Also, there seems to be an issue with chat spam when right clicking a block, instead of getting one line back stating when a block was placed (when it was just placed) I can get 3 or more at times.

    Also any E.T.A on an updated release? :3
     
  29. Offline

    wassilij

    I need a rollback command :(
     
  30. Yes, totally. I run a huge server with thousands and thousands of players. We need to be able to actually FIX things, we don't have the time to do it all by hand. Banning someone doesn't fix the damage they did.
    No, it doesn't and it can't. I use HawkEye now (being merged with two others) and it seems generally pretty great and very stable. Just make sure you tell it to not log too much stuff though, or it goes mental and gives you like 10k DB rows per second.
     
  31. Offline

    MechanID

    i have this erro when try to use stick

    16:36:01 [SEVERE] Could not pass event PLAYER_INTERACT to Log
    java.lang.RuntimeException: Log: Error getting modification data: java.lang.NumberFormatException: For input string: "�Zˎ5�ý��k`e[�쐦G�+4k$�$"# �D��K�6pε{f�ܳ@uK]�]=�s߯�� �^~x������w�Đ_������7�ކg!��{����OC�����~|��a��v�i��v�i��v�i��v�i��v�i��v�����'�8� �"
    at org.pokepal101.log.pokepal101.log.CPlayerListener.onPlayerInteract(CPlayerListener.java:82)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:265)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    i use cb1240
    Update:
    /log purge fix that but i dint know why this happened
     

Share This Page