Inactive [INFO/ADMIN] LogBlock v1.54 - Enderdragon Logging! Tree Grow Logging! [1.4.5]

Discussion in 'Inactive/Unsupported Plugins' started by DiddiZ, Feb 15, 2011.

  1. Offline

    DiddiZ

    Version: 1.50​
    [​IMG]
    [​IMG]
    Find and Backroll those Damn Griefers
    LogBlock release are on DevBukkit:
    http://dev.bukkit.org/server-mods/logblock/

    LogBlock dev builds:
    http://ci.kitteh.org/job/LogBlock/

    Please read the installation guide

    I won't port LogBlock myself to mcAPI. Source code is available, so it shouldn't be to difficult for someone else to do it, also I'm still here. so I can answer questions. If there is more than one willing, that's up to you to handle that.




    The reasons I take this step, are the usual: I quit playing Minecraft about 5 months ago and lastly I was struggling to keep up with updates. The developement of Guardian made slow progress, so I fear it won't be ready to fully replace LB in time.


    Download latest dev build: Jenkins
    View the source code: GitHub
    Table of contents:
    1. Description
    2. Features
    3. Why to use LogBlock
    4. Example command
    5. Older versions
    6. Change log
    7. Todo list / feature requests
    8. Permission nodes
    9. Plugins supporting this
    10. Support the dev
    11. How to post error messages
    12. Advertizing
    Description:

    LogBlock logs block changes into a MySQL database. Block changes can be placed or destroyed block, explosions, burned blocks, sign text changes, chest access, leaves decay etc.
    It can be used as griefer identification tool, to find out who build a particular building, or even roll back changes by certain players. Other purposes can be e.g: Undoing of forest fires
    All additional features are optional, to keep the database as short as possible. All database actions run in their own threads to avoid server lags.
    The use of permissions plugin (or any clone) is possible, but not necessary.
    Uses Spout for chest logging (but it's fully optional, and there is no need for the client mod at all).

    Features:
    • Logging for block placing, block braking, fire, explosions, leaves decay, signtexts, lava flow and chest content
    • Very mighty commands system, not only allowing to rollback and redo, but also to tp to blockchanges, delete log ingame etc. Full list of commands.
    • Many parameters for lookup/rollback/redo/tp/clearlog commands: Block changes of one ore more player, in a specific area, in a world edit selection, specific block types only, block changes older or newer that a specific date, destroyed/created block only, in a different world and combinations of all these parameters. Full list of parameters.
    • Rebuilding map after importing a backup (/lb redo)
    • Last parameter to use the parameters of the last command
    • Quick ingame lookup of block history a wood pickaxe or a bedrock block.
    • All commands accessible from console (exept tools :D)
    • Custom queries for tools.
    • Different tool modes (lookup, rollback, redo, writelogfile and clearlog)
    • Saves block data like wool color, log type, torch adjustment, etc
    • Multiworld and multiserver support (some servers sharing the same database)
    • BigBrother log import
    • Loggable super pickaxe plugin (not to confuse with WorldEdit's super pickaxe)
    • API
    • Webstats
    Why to use LogBlock:

    Example commands: (thanks to tha d0ctor, read more about commands here)

    /lb rollback player fire since 1d3h – rolls back fire 1 day 3 hours
    /lb rollback player fire since 1d3h area 15 – rolls back fire 1 day 3 hours within a radius of 15 blocks

    /lb rollback player thad0ctor since 1h - rolls back thad0ctor 1 hour
    /lb rollback player thad0ctor since 1d area 5 – rolls back thad0ctor actions for the last day within 5 blocks
    /lb rollback area 10 since 1h30m - rolls back all modifications within 10 blocks since the list 1 hours and 30 mins
    /lb rollback area 10 before 06.11.2011 - roll back all changes in an area of 1o before June 11th, 2011
    /lb rollback player thad0ctor since 05:36:00 - roll back all changes of thad0ctor since 05:36 (server time)


    Download, Command, Configuration and Details:
    [​IMG]http://diddiz.insane-architects.net/logblock.php

    Changelog:
    -> Full changelog
    • LogBlock v1.50 # 81 (Dez. 13, 2011)
      Works with CraftBukkit 1.0.1-R1
      • Feature: /lb me shows the total block count
      • Feature: Chest logging without spout
      • Feature: Enderdragon logging
      • Feature: Logging for tree and mushroom grow (thanks to MD5 for the api)
      • Fix: Area param works again with default radius
      • Fix: Rollbacks got slowed down a bit to avoid rare server crashes
      • Fix: If mysql username, password or database only consist of unquoted numbers, LB will read them now
      • Config: World configs changed totally, some names changed and all logging options are now in an own section
    • LogBlock v1.41 #63 (Nov. 15, 2011)
      Works with CraftBukkit recommended build #1337
      • Fix: Players with spawnTools permission are no longer allowed to spawn all tools.
      • Fix: Added a check to avoid "The permission xy is already defined!" errors
    • LogBlock v1.40 #60 (Nov. 09, 2011)
      Works with CraftBukkit recommended build #1337
      • Feature: Custom auto ClearLog
      • Feature: Reduced error spam. Instead of like 40 line of error code, there is now just a warning stating the MySQL con
      • Feature: The queue will now be dumped after 10 tries even when the MySQL server is connected
      • Feature: Custom material names, allows naming custom blocks
      • Feature: LogBlock will now respond to messages when started without MySQL connection
      • Fix: Log import runs now async
      • Fix: Log import errors won't crash the server
      • Fix: Console commands work again
      • Fix: You can now use upper case letter in tool names (I don't know why you even should, but ...)
      • Config: Added clearlog.auto, clearlog.enableAutoClearlog in main config. Added materials.yml. Removed clearlog.keepLogDays
      • Permissions: Added 'logblock.spawnTools'
    • LogBlock v1.32 (Oct. 04, 2011)
      Works with CraftBukkit recommended build #1240
      • Feature: Player info logging: firstLogin, lastLogin, onlinetime, ip. No ingame lookup yet.
      • Feature: /lb queuesize to see the current queue size
      • Fix: Door logging logs now also fence gates
      • Fix: Bukkit api break in CB #1191
      • Fix: time restriction works now as intended. Thanks to xrobau
      • Fix: Players with insufficient permissions can't smuggle bedrock from one world to another
      • Config: Added logPlayerInfo
    • LogBlock v1.30 (Sep. 22, 2011)
      Works with CraftBukkit recommended build #1185
      • Feature: Chat lookup /lb chat player diddiz search +admin +sucks +dicks (more info)
      • Feature: Door logging
      • Feature: Dynamic tools, define your own tools
      • Feature: Use since and before to define a timespan
      • Feature: Enderman logging
      • Feature: cake logging (who ate it)
      • Config: Added logEndermen, logCakes and logDoors to world config and moved the tool section in main config.
      • Permissions: logblock.tool changed to logblock.tools.tool and
        logblock.toolblock to logblock.tools.toolblock.
    Todo List:

    https://github.com/LogBlock/LogBlock/issues

    Permission Nodes:
    https://github.com/LogBlock/LogBlock/wiki/Permissions

    Plugins supporting Logblock:
    List (open)

    When you want to appear your plugin here, tell me about



    Support the developer (that's me :D):
    If you want to support me writing plugins or want to thank me for the plugin/support, you can: Suggest features I missed, report bugs (best with fix :D), donate via PayPal, flattr my plugins, gift me The Witcher 2 (thanks to newyoukdaily), 2x 1GB DDR1 modules (thanks to HonestFlames), or send me the inner life of a laptop or netbook with a broken display (need it to build a model aircraft, so there is no need for parts like display and keyboard).

    [​IMG]


    How to post error messages:


    I won't aswer questions to general MySQL setup/installation/what is MySQL (there are lots of good tutorials out there, use google)
    Please read the installation guide before asking a question about installation problems.
    Please read the FAQ before posting a error report. It may be solved there.
    In case of rollback or lookup problems: Type /lb savequeue and try again (when it's fixed then, it was a consumer problem, see FAQ)
    When you post error messages, it's important to paste the whole stack trace!

    Advertizing:
    Newyorkdailys Plugin Support Buisness (open)
    Still can't get LogBlock working, or any other plugin? Are you getting errors in your console and cant figure out why? Newyorkdaily offers Basic/Advanced Plugin support.
    • General/Advanced troubleshooting: FREE!
    • Plugin Installations: 1-2 Plugins - FREE!
    • 3 or More Plugins - $2
    Click on the link below to connect to him now!
    http://wbe001.mibbit.com/?settings=7cb4fd3cdd72754df475fb92a0b65f6c&server=irc.Mibbit.Net&channel=#CBPluginSupport


    There is a LogBlock irc channel: #logblock at irc.esper.net.
    You can ask me on skype. My name is 'hawky.diddiz'.
     
  2. I have 0.12c installed and I still get this 32767 thing. ;) But thankyou for the notice.
     
  3. Offline

    DiddiZ

    Yes ... it's a shame. I don't know why the bukkit scheduler says it started the cunsumer, rather then returning that it didn't. A alredy added an alternative in the case that bukkit scheduler fails. Will add a manual config to don't use the bukkit scheduler.
    Every dev (or at least most of them) says: "don't use timer, it's horrible, use the bukkit scheduler", but for me there are only problems. And I've no clue why it only fails at a few servers.
     
  4. Offline

    Snookieboy

    Considered allowing an option in the config file to revert to timer instead of Scheduler? That way, everyone can be catered for :)

    I experienced one problem still, Server Crash, no chance to do lb savequeue or for it to exit nicely. So having a Timer option would definitely be welcomed :)
     
  5. Offline

    Skadar

    Thanks that did it! Cheers!

    Got this error this evening. I think I've seen similar ones before. Looks like it has to do with logging sign text. Perhaps it's a single-quotes issue when someone tries write a sign like "Bob's House".

    Code:
    04:11:14 [SEVERE] [LogBlock Consumer] SQL exception
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's] [Mob Grinder]')' at line 1
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  6. Offline

    woodzy

    sad day when u spend 4 hours with ur girlfrend log back in to save the queue and its over 46k in size! took a min to save.
    any way you can have an "auto queue save" setting, for the /lb savequeue.
    its err not saveing by auto if it does that like it used to :/
    dump timer is set to 2
     
  7. Offline

    DiddiZ

    Looks like, but I'm escaping signtexts since v0.11b.

    EDIT: Found it, backslashes are causing that. Fixed this.

    Hm, I guess the option to not use the bukkit schduler will work too.
     
  8. Offline

    Criixx

    Plugin doesn't work for me. I get no errors or something else. The Plugin connects to the Database and all is fine.
    But when i click with the wooden pickaxe, it shows me no Logs. Permissions are enabled (btw).
     
  9. Offline

    ledhead900

    Logblock 12b

    seems to fail at what its ment to be doing!
    I dunno if u can reproduce it but we had some new grief and even tho it shows us who did it, It wont roll back the user it says zero changes even when we roll back as far as 10 days.

    When its obvious that the grief is now as it was not there yesterday and we only had this PLUGIN for past 3 days.

    Giving LB 12c a shot now I also want to shorten the commands as there huge.

    I'm not sure it even asks it I want roll back like BB did. BB asks me to confirm my choice on rollback.
    BB proved more reliable at this point in time and I am considering going back if I don't get this rollback to work every time with out fail.


    IT could be the config tho

    I never added nothing to the rollback item list, I dunno why you would even have that there a rollback black list yea but a whitelist seems kinda pointless anyway I added nothing to it hopeing it would roll back anything anyway.

    As I was pretty sure I did not have SETUP item ID's for it to work with.
     
  10. Offline

    DiddiZ

    It's probably the problem with the bukkit schduler. Does the log appear when you type "/lb savequeue"?
    When it's in the database, there is no rational reason to fail at rollback. Which command are you using with what syntax?
    Good suggestion.
    It's kind of nagging, when you rollback a tnt explosion and the tnt blocks come back. Therefore is the blacklist.
     
  11. Offline

    Criixx

    It shows me: Wrong argument. Type /lb help for help
     
  12. Offline

    ledhead900

    Yea I said I get the Blacklist I was wondering why it had a white list as well.

    oh and to rollback I used

    /lb rollback player name
    This gave me a list of what the rollback did but told me o changes where found.

    I tried to do

    /lb rollback player name 10days
    it appears the syntax is not valid

    Not quite sure how to use that one.
    I did once successfully that way seems to work but rolling back changes with just player name hopeing it would roll back all does nothing. Maybe I should try rollback just area.


    By the way I assume the selection uses worldedit and worldguard ?
     
  13. Offline

    DiddiZ

    You should update to v0.12c
    0 changes were found, because the player didn't any change the last 30 minutes.
    There should have been a message like "Rolling back player xyz by 30 minutes"
    When you don't specify a time, the default time is used (which is 20 minutes by default)
    The syntax is:
    /lb rollback player name 10 days (the space is important)
    Yup, selection is the current WorldEdit selection.
     
  14. Offline

    Criixx

    I've downloade it today <.<
     
  15. Offline

    ledhead900

    Ah I will go try that
    and come back if it not work.

    You better update the in game help then find it confusing as it does not specify the important of spaces or anything.

    You would have been wiser to give an example like

    /lb rollback player name 5 days - Example


    Out of curiosity

    Why is this better over BB

    BB seems to fixing its flaws and its actually easier to use in a lot of ways over this.

    for instance its commands are shorter.
     
  16. Offline

    Pickaxe

    Hey, I have a "problem".

    In my log file i get a bunch of linses like this fellow here:
    Code:
    2011-04-13 14:59:53 [INFO] [LogBlock Consumer] Queue overloaded. Size: 5835
    Since I'm a smart person I know it's related to the "/lb savequeue" command somehow. :p
    But what does this command actually does? It's something like a buffer between the plugin and the DB right? Hmm I get my logs immediately after "griefing around"... I can't figure it out.

    ot: You can't perform a search request in only one topic here at bukkit ? :/

    Thanks in advance!
     
  17. Offline

    woodzy

    can u link me a diffrent timer?
     
  18. Offline

    ledhead900

    I have an idea how about ability to warp to a players last 10 edits "Configurable" Not even BB has that.
     
  19. Offline

    DiddiZ

    Will release today.
    Great! Will come.
     
  20. Offline

    woodzy

    sweet, cant wait!!
     
  21. Offline

    yottabyte

    When using a LB command as an op and admin it just says I don't have access to that command. Stuff is logged into the database properly though.
    CB #670 and LB v0.12c
     
  22. Offline

    DiddiZ

    Probably permissions?
     
  23. Offline

    FloydATC

    Craftbukkit 674 and LogBlock 0.12c still crashes on startup, there's something wrong with the MySQL connection code:
    Code:
    17:58:43 [INFO] Logblock v0.12c enabled.
    17:58:43 [INFO] CraftBukkitUpToDate version 2.4.9 is enabled!
    17:58:43 [SEVERE] [LogBlock] SQL exception
    java.sql.SQLException: Access denied for user 'floyd'@'localhost' (using password: YES)
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
            at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
            at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
            at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
            at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
            at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:779)
            at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:622)
            at de.diddiz.LogBlock.ClearLog.run(ClearLog.java:39)
            at java.lang.Thread.run(Thread.java:636)
    Rollback to 0.11b is still the only solution I've found. Please help...
     
  24. Hi, umm i have enabled logChestAccess: true in the Config but it only logs 0 0 0 0 everywhere ... in the world3-chest table :((( doesn't it work?
     
  25. Offline

    yottabyte

    Nvm, I noticed I had changed the permissions :p Thnks anyway
     
  26. Offline

    DiddiZ

    Strange... The connection check on start works (wouldn't show enables if not).
    It could be a variant of the config bug. It could work when you rename the config, start once to autocreate and set config entries again.
    No, it's not implemented yet. Still waiting for the hooks. Thought they would come earlier.
     
  27. Offline

    yottabyte

    After reloading the server:

    Code:
    17:34:41 [SEVERE] [LogBlock] SQL exception
    java.sql.SQLException: Can't create/write to file '/home/minecraft/2p0/plugins/LogBlock/dumb\lb-main-11-04-06-17-34-41.csv' (Errcode: 13)
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
            at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
            at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
            at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
            at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
            at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:779)
            at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:622)
            at de.diddiz.LogBlock.ClearLog.run(ClearLog.java:39)
            at java.lang.Thread.run(Thread.java:636)
    
     
  28. Offline

    user_44103

    This appears after I reloaded my Server
    Code:
    2011-04-13 20:47:52 [INFO] [LogBlock] Permissions enabled
    2011-04-13 20:47:52 [SEVERE] [LogBlock ConnectionPool] Error while fetching connection
    java.sql.SQLException: Access denied for user 'ni7663_2'@'localhost' (using password: YES)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931)
        at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4031)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296)
        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at de.diddiz.util.ConnectionPool$ConnectionService.getConnection(ConnectionPool.java:413)
        at de.diddiz.util.ConnectionPool.getConnection(ConnectionPool.java:63)
        at de.diddiz.LogBlock.LogBlock.onEnable(LogBlock.java:93)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-13 20:47:52 [SEVERE] [LogBlock] Exception while checking database connection
    java.lang.NullPointerException
        at de.diddiz.LogBlock.LogBlock.onEnable(LogBlock.java:94)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-13 20:47:52 [INFO] LogBlock disabled.
    EDIT:
    Okay work again, false Username ^^. I'm so stupid :).
     
  29. Offline

    DiddiZ

    The issue with backslashes should be fixed with v0.12c. Alternatively disable dumbDroppedLog in config.
     
  30. Offline

    Don Redhorse

    perhaps it would make sense to specifiy logging only for certain permission groups.

    I can be quite certain that my moderators and admins don't grief so I could exclude them from being logged, same thing could be done with other people you trust or have been on the server for a long time.
     
  31. Offline

    FloydATC

    I see what you mean but in my experience a misbehaving op can be more of a problem than any regular player so you may want to keep tabs on them all just to be on the safe side.

    What you could do is manually purge their data from the database sooner than the other players. I reckon it should take about 10 minutes to whip up a script for that and run it once a day using cron or whatever.

    That did the trick. Curious.

    Love this plugin, I banned 10 players in as many minutes yesterday and never had to touch the backups. No more disputes over who did what and generally a more friendly and open atmosphere on the server now that they know griefers can be dealt with in a quick and efficient way.

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

Share This Page