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

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

  1. Offline


    Version: 1.50​
    Find and Backroll those Damn Griefers
    LogBlock release are on DevBukkit:

    LogBlock dev builds:

    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

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

    • 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:

    -> 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.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 and
        logblock.toolblock to
    Todo List:

    Permission Nodes:

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


    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!

    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!

    There is a LogBlock irc channel: #logblock at
    You can ask me on skype. My name is 'hawky.diddiz'.
  2. Offline


    That's the thing...
    When something odd happens i always check the console, if its not in the console i check in the Logs.
    But this time they show NOTHING... it's like the server freezes/crashes and doesn't have time to Log the problem.
    My server is on a Dedicated of a friend of mine so i have to use a SSH like PuTTY to run it and issue commands, but then when it happens, PuTTY crashes/freezes/loses connection at the same time...

    EDIT: Oh yea forgot to mention that everyone disconnects with a:

    "Internal Exception: Read Time Out"

    That's the only error i can get...

    EDIT: Another thing i found out. After i issued the rollback and the server crashes and i rerun it, the rollback DID complete...
  3. Offline


    Loving the new system! It takes a little bit to get used to but its so flexible =] Great job @DiddiZ
    DiddiZ likes this.
  4. Offline


    @Flatliner @Debilitation @Max Black
    About the radius/time restrictions:
    What would you prefer:
    1. A max sonfig for area and time and ignoreRestriction permissions
    2. A maxBlockchanges config and a permission to rollback unlimited blockchanges
    So restrict te parameters or the count of blockchanges?
    Second would be easier to implement, but I want to know which you find more useful :D
  5. Offline



    Either or is fine with me man, they both sound good.
  6. Offline


    i cant enable LogBlock!
    First i thought its because i forgot setting the host, then because the config.yml had not enough rights (now have 770). But i still get this error at serverstart:
    Code (Text):
    1. at
    3. at
    4. at net.minecraft.server.MinecraftServer.init(
    5. at net.minecraft.server.MinecraftServer.a(
    6. at net.minecraft.server.MinecraftServer.e(
    7. at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    8. at de.diddiz.LogBlock.LogBlock.onLoad(
    9. at de.diddiz.LogBlock.Config.(
    10. Error while writing to config.yml
    11. > 15:59:25 [SEVERE] [LogBlock] Error while loading:
    edit: i forgot installing bukkitcontrib but i still cant enable LogBlock
  7. Offline


    LB has seemingly no write rights to the file.
  8. Offline


    I think it only happens with offline mode servers
    But since you fix it, it doesn't matter anymore =)
    DiddiZ likes this.
  9. Offline


    i have set the rights for the config to 777 now
    now i got this error:
    Code (Text):
    1. at
    2. at
    3. at net.minecraft.server.MinecraftServer.h(
    4. at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    5. at net.minecraft.server.NetServerHandler.a(
    6. at net.minecraft.server.NetworkManager.b(
    7. at net.minecraft.server.Packet3Chat.a(
    8. at net.minecraft.server.NetServerHandler.a(
    9. at
    10. at net.minecraft.server.NetServerHandler.handleCommand(
    11. at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
    12. at org.bukkit.command.SimpleCommandMap.dispatch(
    13. at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(
    14. at org.bukkit.craftbukkit.CraftServer.reload(
    15. at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    16. at org.bukkit.plugin.SimplePluginManager.loadPlugins(
    17. at org.bukkit.plugin.SimplePluginManager.loadPlugin(
    18. at
    19. at java.util.jar.JarFile.(
    20. at java.util.jar.JarFile.(
    21. at
    22. at Method)
    23. error in opening zip file
    24. > 16:59:51 [SEVERE] Could not load 'plugins/LogBlock.jar' in folder 'plugins':
    i redownloaded the plugin and uploaded it to the server again but its still the same
  10. Offline


    Do you upload it in binary mode?
  11. Offline


    no, "automatic" (filezilla). LogBlockQuestioner works!
  12. Offline


    In any case, you've a corrupted LB jar.
    Taranis01 likes this.
  13. Offline


    Another problem i have discovered when using logblock.

    When griefers are destroying blocks, it's saved as "<name> did a unspecified action" so i can't rollback it. Any ideas of what's causing it?
  14. Offline


    I'm gonna be a pain (sorry!) and say I think I would lean a little more toward option 1. The limits for area, time etc rather than just block changes, just because it's easy for me to think about in my head. Block changes can vary a lot (depending on the size of the area, how much work has been done etc). Whereas a hard limit for area and particularly for time, is easier to choose a sensible number for.
  15. Offline

    tha d0ctor

    What is the best way to keep the LogBlock Queue from becoming overloaded?

    also just to clear up and commands and params that are kind of hard to get used to with your documentation I made some easy example commands to shows your plugin's usage, feel free to post them here they helped my mods greatly!:

    /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)
  16. Offline


    I'm alro interested in knowing that. Afaik bukkit sometimes provides no item type in break events, but I don't know under what circumstances, and how some griefers can exploit that ...
    But at least you should be able to rollback blocks placed that way.
    Good point :D
    Adjusting the consumer ->
    But as I see that the consumer got slower (maybe due to chestlogging) I'll work on some performace improvements for next update :D
    Thanks :)
  17. Offline


    hey, the new tool modes are awesome but you should add a note how you change the mode back to normal
  18. Offline

    tha d0ctor

    sweet deal, my consumer is set to false so I'll look into lowering the delay between runs and increase the time per run

    is there any risk to modifying these features other than higher CPU usage?
  19. Offline


    I thought that would be obvious:
    /lb tool mode lookup
    Afaik no, even when two runs would overlap each other, only one will run at a time.
  20. How do I check who took items out of a chest? I see no commands for it.
  21. Offline


    Grab a wood pickaxe ("/lb tool") :D
  22. Thanks! I always thought I didn't see a command :confused:
  23. Offline


    I might have found the problem, gonna carry out some testing and post my results here.

    Edit: Wasn't what i thought it was. I've started to encounter the problem when using '//' from World edit. Tried it now and couldn't get it like that again.
  24. Offline


    Code (Text):
    2. 2011-06-16 00:35:50 [SEVERE] [LogBlock] Error while fetching connection
    3. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    5. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    6.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    7.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    8.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    9.     at java.lang.reflect.Constructor.newInstance(
    10.     at com.mysql.jdbc.Util.handleNewInstance(
    11.     at com.mysql.jdbc.SQLError.createCommunicationsException(
    12.     at com.mysql.jdbc.MysqlIO.readPacket(
    13.     at com.mysql.jdbc.MysqlIO.doHandshake(
    14.     at com.mysql.jdbc.ConnectionImpl.coreConnect(
    15.     at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(
    16.     at com.mysql.jdbc.ConnectionImpl.createNewIO(
    17.     at com.mysql.jdbc.ConnectionImpl.<init>(
    18.     at com.mysql.jdbc.JDBC4Connection.<init>(
    19.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    20.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    21.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    22.     at java.lang.reflect.Constructor.newInstance(
    23.     at com.mysql.jdbc.Util.handleNewInstance(
    24.     at com.mysql.jdbc.ConnectionImpl.getInstance(
    25.     at com.mysql.jdbc.NonRegisteringDriver.connect(
    26.     at java.sql.DriverManager.getConnection(
    27.     at java.sql.DriverManager.getConnection(
    28.     at de.diddiz.util.MySQLConnectionPool.getConnection(
    29.     at de.diddiz.LogBlock.LogBlock.getConnection(
    30.     at de.diddiz.LogBlock.LogBlock.onLoad(
    31.     at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    32.     at net.minecraft.server.MinecraftServer.e(
    33.     at net.minecraft.server.MinecraftServer.a(
    34.     at net.minecraft.server.MinecraftServer.init(
    35.     at
    36.     at
    37. Caused by: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
    38.     at com.mysql.jdbc.MysqlIO.readFully(
    39.     at com.mysql.jdbc.MysqlIO.readPacket(
    40.     ... 24 more
    41. 2011-06-16 00:35:50 [SEVERE] [LogBlock] Error while loading:
    42. java.lang.NullPointerException
    43.     at de.diddiz.LogBlock.LogBlock.onLoad(
    44.     at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    45.     at net.minecraft.server.MinecraftServer.e(
    46.     at net.minecraft.server.MinecraftServer.a(
    47.     at net.minecraft.server.MinecraftServer.init(
    48.     at
    49.     at
    Erm, I have a MySQL server set up and once I /reloaded my server, it broke and started sending me this very long error.
    I'm about clueless on MySQL stuff so.. I have no idea what this means. :c
    Please help.
    Running CB 860 and v1.10 of LogBlock.

    Thank you in advance,
    - Lildirt
  25. Offline


    Essentially it means, LB can't get a connection to the MySQL server. If you are sure that it worked before the reload, then use your ip instaed of localhost. Heard it could help sometimes.
  26. Offline


    Whenever I try to use /lb rollback player einschtein time 5 minutes, it doesn't see all the blocks that I changed. I tried it a minute ago, I deted 5 blocks and only gave me 1. And when I rollback, it doesn't even put it back.

    Doesn't it save everything in the database, maybe? I got the following under consumer in the config-file:
    delayBetweenRuns: 4
    forceToProcessAtLeast: 0
    timePerRun: 200
    useBukkitScheduler: false
  27. Offline


    Nope, it just takes a while. There only gets data lost when the mysql server shuts down and you reload/restart then.
    So you say LB works when you start the server, but can't connect to the MySQL server when you reload?
    EDIT: Try /lb savequeue before
  28. Offline


    I have my IP for the MySQL server on Config.yml, but it still breaks. Any ideas or suggestions?
    I've tried going to localhost and back to the normal IP, doesnt change a thing.

  29. Offline


    Ive been meaning to ask this for ages.

    We have loblock from heyo days would like to convert the database over to bukkit as we know the formatting from then has changed.

    Thing is the guy who set logblock up used the same database so there both together in the same file :/
  30. Back in logblock 0.15 and previous, chest logging would just show you the name of person who accessed a chest, and that was all, I'm wondering if it's possible to get that again, or is the only way to log chests to show everything they took and put in?
  31. Offline


    Just recently I've been getting
    MysqlDataTruncation: Data truncation: Out of range value for column x at row 1

    errors. I took a look at your wiki and it said to change the columns to INT, can I get a guide on how to do that? :D
    The map size is roughly 29,626,560,000 blocks. Give or take a few billion for air blocks. I haven't had this issue before but until now... :(

Share This Page