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


    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


  3. whoa, really! Thats pretty dang fast. your awesome :D
  4. Offline


    Might I suggest a feature in which you can do a search for "all people currently online". This will allow you to do a quick check, see if someone has a lot of destroys and barely any creates. Stops me from having to watch them, or type out their names individually.
  5. Offline


    The accordingly command with the new commands system would be: "/lb time 30 minutes sum players"
  6. Offline


    Hello, i need some help. When i try to rollback a area, it give me the message:

    Rolling back selection by 180 minutes.
    1783 Changes found.
    Rollback finished successfully
    Undid 230 of 1737 changes (0 errors, 500 blacklist collisions) <--- What does that mean?!
    Took: 96ms

    Can you tell me how to fix this, so it dont give me those 500 blacklist collisions?
  7. Offline


    How far off till next version ?
  8. Offline


    Will it ever log blocks created by lava + water. I had greifers use this method to create a whole slew of cobble and obsidian.
  9. Offline


    Whatever you try to rollback, you added the block type to rollback.dontRollback. (or it was alredy there). Remove it from the config.
    Next weekend
    Try lavaflow logging.
  10. Offline

    tha d0ctor

    I'm getting this now, never have had any problems, my server has been acting up a bit I think its due to another error, what could be causing this?

    CONSOLE: 9[PLAYER_COMMAND] Mr_Shauny: /back
    LogBlock: Consumer] Queue overloaded. Size: 4499
    CONSOLE: ChocoboRRR has left.
    LogBlock: Consumer] Queue overloaded. Size: 5105
    LogBlock: Consumer] Queue overloaded. Size: 5473
    LogBlock: Consumer] Queue overloaded. Size: 5683
    CONSOLE: Whitelist: Player ChocoboRRR is trying to join...
    CONSOLE: ChocoboRRR has logged in.
    CONSOLE: /save-on
    CONSOLE: Enabling level saving..
    CONSOLE: CONSOLE: Enabling level saving..
    LogBlock: Consumer] Queue overloaded. Size: 5991
    CONSOLE: /5save-off
    WEB] hi
    g: Hy3RiDrENegADE: hey
    LogBlock: Consumer] Queue overloaded. Size: 6309
    g: Hy3RiDrENegADE: permissions are broke
    g: Hy3RiDrENegADE: :(
    LogBlock: Consumer] Queue overloaded. Size: 6514
    CONSOLE: 9[PLAYER_COMMAND] Richardw9: /give richardw9 step 3656
    CONSOLE: 9[PLAYER_COMMAND] Richardw9: /list
    LogBlock: Consumer] Queue overloaded. Size: 6623
    LogBlock: Consumer] Queue overloaded. Size: 6742
    CONSOLE: 9[PLAYER_COMMAND] ChocoboRRR: /list
    g: ChocoboRRR: :<
    CONSOLE: 9[PLAYER_COMMAND] Mr_Shauny: /warp 3
    LogBlock: Consumer] Queue overloaded. Size: 7110
    Residence: Saved Residences...
    CONSOLE: 9[PLAYER_COMMAND] Mr_Shauny: /warp hybrid_shauny
    LogBlock: Consumer] Queue overloaded. Size: 7529
    LogBlock: Consumer] Queue overloaded. Size: 7787

    LogBlock: Consumer] Queue overloaded. Size: 7947
  11. Offline


    Disable consumer.useBukkitScheduler
  12. Offline


    I get this when I start the server.
    I get this error when I run the server. 16:55:11 [INFO] LogBlock disabled.

    Server Properties
    #Minecraft server properties
    #Sun May 08 17:19:50 MDT 2011

        dumpDeletedLog: true
        keepLogDays: -1
    - lb-main
    - lb-hell
    - earth
    - nether
        - 8
        - 9
        - 10
        - 11
        - 51
        - 10
        - 11
        - 46
        - 51
        logBlockCreations: true
        logBlockDestroyings: true
        logKills: false
        logLeavesDecay: false
        logFire: false
        logLavaFlow: false
        logKillsLevel: PLAYERS
        logChestAccess: true
        logExplosions: false
        logSignTexts: false
        minCountPerRun: 100
        delayBetweenRuns: 6
        maxTimePerRun: 100
        maxCountPerRun: 1000
        useBukkitScheduler: true
        defaultDist: 20
        defaultTime: 30 minutes
        toolblockID: 7
        toolID: 270
        port: 3306
        host: localhost
        user: root
        database: logblock

    The version doesn't matter, neither does permissions. At least as obvious as it would seem, I would think so.

    My version is 740, permissions are fine.

    I meant versions above 733, since most people would have it today.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 18, 2016
  13. Offline


    There should be an error log before, this would help.
  14. Offline


    18:47:40 [INFO] Loaded Essentials build 2.2.8 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    18:47:40 [INFO] Loaded EssentialsSpawn build 2.2.8 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    18:47:41 [INFO] [Permissions] version [2.7.2] (Phoenix)  loaded
    18:47:41 [INFO] [P2] Group Guest does not have a rank defined.
    18:47:41 [INFO] [P2] Group Builder does not have a rank defined.
    18:47:41 [INFO] [P2] Group Donator1 does not have a rank defined.
    18:47:41 [INFO] [P2] Group Donator2 does not have a rank defined.
    18:47:41 [INFO] [P2] Group Donator3 does not have a rank defined.
    18:47:41 [INFO] [P2] Group Moderator does not have a rank defined.
    18:47:41 [INFO] [P2] Group Admin does not have a rank defined.
    18:47:41 [INFO] [P2] Group Founder does not have a rank defined.
    18:47:41 [INFO] [P2] Some groups do not have a rank defined, some commands are disabled.
    18:47:41 [INFO] [P2] No Groups Defined.
    18:47:41 [INFO] [P2] version 2.1 has been enabled.
    18:47:42 [INFO] LogBlock disabled.
    18:47:42 [INFO] [NoCheat] version [0.9.6] couldn't find CrafTIRC plugin. Disabling logging to IRC.
    18:47:42 [INFO] [NoCheat] version [0.9.6] is enabled with the following checks: moving bedteleport speedhack itemdupe flying
    18:47:42 [INFO] Loading ColoredSigns
    18:47:42 [INFO] BorderGuard version 3.1 is enabled!
    18:47:42 [INFO] Lockette version 1.3.7 is being enabled!  Yay!  (Core version 1.0)
    18:47:42 [INFO] Lockette: Detected craftbukkit build [740] ok.
    18:47:42 [INFO] Lockette: Linked to Permissions plugin version 2.7.2
    18:47:42 [INFO] Lockette: Using ops file for admin permissions.
    18:47:42 [INFO] Lockette: Ready to protect your containers.
    18:47:42 [INFO] [iChat] Found Permissions (v2.7.2)
    18:47:42 [INFO] iChat (v2.2.3) enabled
    18:47:42 [INFO] WorldEdit 4.4 enabled.
    18:47:42 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    18:47:42 [INFO] [AutoSave] Server Version is Recommended Build 740
    18:47:42 [INFO] [AutoSave] Loading config file
    18:47:42 [INFO] [AutoSave] Version 1.3.0 is enabled: 7935c837-42fa-4705-8d2d-4bb1b6bdd7d9
    18:47:42 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    18:47:42 [INFO] WorldGuard: (earth) Single session is enforced.
    18:47:42 [INFO] WorldGuard: (earth) TNT ignition is PERMITTED.
    18:47:42 [INFO] WorldGuard: (earth) Lighters are PERMITTED.
    18:47:42 [INFO] WorldGuard: (earth) Lava fire is blocked.
    18:47:42 [INFO] WorldGuard: (earth) All fire spread is disabled.
    18:47:42 [INFO] WorldGuard: Loaded configuration for world 'earth"
    18:47:42 [INFO] WorldGuard: 5 regions loaded for 'earth'
    18:47:42 [INFO] WorldGuard 5.0-alpha10 enabled.
    18:47:42 [INFO] Done (0.408s)! For help, type "help" or "?"
    18:47:42 [INFO] / lost connection
    18:47:47 [INFO] Sweet_Mafia [/] logged in with entity id 96
    18:47:47 [INFO] [AutoSave] AutoSaveThread Started: Interval is 1800 seconds, Warn Times are 0
  15. Offline


    Is that the whole log? There couldn't be something before?
  16. Offline


    thats it
  17. Offline



    Is it possible to clear a blocks history?
  18. Offline


    Strange, I looked trough the source once more and can't find an exit without error log ...
    Definitely a feature for v1.00 :D
    NEO likes this.
  19. Offline


    I can't use this plugin i don't know why i just getting this
    16:03:21 [INFO] [LogBlock] Connecting to username@jdbc:mysql://localhost:3306/minecraft...
    16:03:21 [SEVERE] [LogBlock] Error while fetching connection
    java.sql.SQLException: Access denied for user 'username'@'localhost' (using password: YES)
            at com.mysql.jdbc.SQLError.createSQLException(
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(
            at com.mysql.jdbc.MysqlIO.secureAuth411(
            at com.mysql.jdbc.MysqlIO.doHandshake(
            at com.mysql.jdbc.ConnectionImpl.coreConnect(
            at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(
            at com.mysql.jdbc.ConnectionImpl.createNewIO(
            at com.mysql.jdbc.ConnectionImpl.<init>(
            at com.mysql.jdbc.JDBC4Connection.<init>(
            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(
            at com.mysql.jdbc.ConnectionImpl.getInstance(
            at com.mysql.jdbc.NonRegisteringDriver.connect(
            at java.sql.DriverManager.getConnection(Unknown Source)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at de.diddiz.util.ConnectionPool.getConnection(
            at de.diddiz.LogBlock.LogBlock.getConnection(
            at de.diddiz.LogBlock.LogBlock.onLoad(
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(
            at net.minecraft.server.MinecraftServer.e(
            at net.minecraft.server.MinecraftServer.a(
            at net.minecraft.server.MinecraftServer.init(
    16:03:21 [SEVERE] [LogBlock] Exception while checking database connection
            at de.diddiz.LogBlock.LogBlock.onLoad(
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(
            at net.minecraft.server.MinecraftServer.e(
            at net.minecraft.server.MinecraftServer.a(
            at net.minecraft.server.MinecraftServer.init(
    plugin in the cmd.
  20. Offline


    You should set the MySQl config
  21. Offline


    Thanks work now =)
  22. Offline


    Ok littebit offtopic but DiddiZ you are good with mysql... is it a good idea to make plugin ask for mysql output on every block break? or is it just too slow and creates huge amount of lag (i know mysql has to be on same network/machine anyway otherwise ping will kill it)
    Now that's where onTopic part comes in... i asked a "Two way" API earlier and that's because i wanted to make a simple block protection plugin (Logblock database would be awesome for it), but now it hit me... maybe mysql output is just too darn slow to use it like that?

    (i know it should be possible to load block history on the go around player but it's just way above my java skills)

    Thanks for your ansver!
  23. @DiddiZ
    so let me get this clear, right now the updates are for compatibility, but v1.00 will be for new features, etc.?
  24. Offline


    Hm, basically it's a good idea with some modifications. I would advise to not check every block, but a certain cance to check a block, configurable. ATM I'm struggling with LB v1.00, so when you're interested to write this plugin, I'd support you. You may contact me on skype to discuss the neccessary api methods. The query speed can be drastically optimized with the correct indexes, like now the speed from tool lookup (good indexes) differs from the very slow "/lb block" (bad indexes).

    And lots of them :D
    But look at the changelog, I always add smaller or larger features.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 18, 2016
  25. alright, sweet :p
    v1.00 <3
  26. Offline


    Can you give me the command to rollback a area from 15 blocks in a hour?

    /lb rollback area 15 days 3

    does not work. I believe I am typing this wrong.
  27. Offline


    /lb rollback area 15 3 days :D
  28. Offline


    When i do rollback it says it works but it's never rollback anything.
  29. Offline


    Well, which command and what does LB say?
  30. Offline


    i have tryed all rollbacks and it says Rolling back area within 20 blocks of you by 1440 minutes.
    45 changes found.
    Rollback finished successfully
    undid 31 of 45 changes (0 errors, 1 blacklist collisions)
    took: 0ms
  31. Offline


    Sounds good. Did you brake block that you placed? In that case, they'd respawn get destroyed immediately.

Share This Page