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


    That can only be caused, when the player doesn't appear in the db ... Check for typo or look if the name apppears in the db at all.
    Huh. What says the history of o of these blocks?

    Damn, forgot that in the last release ...

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


    I'm getting the following error:

    2011-03-18 06:00:05 [SEVERE] Could not load plugins/LogBlock.jar in plugins: null
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(
        at net.minecraft.server.MinecraftServer.e(
        at net.minecraft.server.MinecraftServer.a(
        at net.minecraft.server.MinecraftServer.d(
    Caused by: while scanning a simple key
     in "<reader>", line 19, column 1:
        worldNames:[World1, nether, smp]
    could not found expected ':'
     in "<reader>", line 20, column 1:
        - lb-main
        at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(
        at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(
        at org.yaml.snakeyaml.composer.Composer.composeNode(
        at org.yaml.snakeyaml.composer.Composer.composeDocument(
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(
        at org.yaml.snakeyaml.Yaml.load(
        at org.bukkit.util.config.Configuration.load(
        ... 8 more
    I'm using the config.yml file created by LogBlock, edited for my server's settings, but it seems to be some sort of malformed yaml or something.
    logCreeperExplosionsAs: Creeper
    logLeavesDecayAs: LeavesDecay
    defaultDist: 20
    usePermissions: true
    logFire: true
    toolblockRemove: true
    defaultTime: 30 minutes
    toolblockID: 17
    logFireAs: Fire
    logChestAccess: true
    logSignTexts: true
    password: xxxx
    - lb-main
    url: jdbc:mysql://localhost:3306/xxxxx
    keepLogDays: -1
    username: xxxxx
    logLeavesDecay: true
    - world
    driver: com.mysql.jdbc.Driver
    logTNTExplosionsAs: TNT
    delay: 6
    logExplosions: true
    toolID: 280
  4. Offline


    - World1
    - nether
    - smp
    worldNames: [World1, nether, smp]
    And the same syntax for worldTables.
  5. Offline


    It says who placed them ant time. Just like normal.
  6. Offline


    Hm ... what happens if you /lb setpos on this block and rollback cuboid?
  7. Offline


    The same.
    "Undid 0 of 20 cuboids"
  8. Offline


    Thanks for the tips. Didn't pick up on the lines with - being world names and table names until you put it like that. Works fine now.
  9. Offline


    I keep getting this error when trying to rollback a specific person. Please help it is most urgent than I get a quick response.
  10. Offline


    Update Bukkit.
  11. Offline


    Update Bukkit.
  12. 2011-03-20 09:35:46 [INFO] Starting minecraft server version Beta 1.3
    2011-03-20 09:35:46 [INFO] Loading properties
    2011-03-20 09:35:46 [INFO] Starting Minecraft server on
    2011-03-20 09:35:46 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-03-20 09:35:46 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-03-20 09:35:46 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-03-20 09:35:46 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-g6c6c30a-b556jnks (MC: 1.3)
    2011-03-20 09:35:46 [INFO] Preparing level "world"
    2011-03-20 09:35:46 [INFO] Preparing start region
    2011-03-20 09:35:46 [INFO] LWC Loading shared objects
    2011-03-20 09:35:46 [INFO] LWC Native library: plugins/LWC/lib/native/Linux/amd64/
    2011-03-20 09:35:46 [INFO] WorldGuard loaded.
    2011-03-20 09:35:46 [INFO] [Permissions] version [2.5.4] (Phoenix) was Initialized.
    2011-03-20 09:35:46 [INFO] [AuthMe] 15 registered players loaded!
    2011-03-20 09:35:46 [INFO] [AuthMe] Version 0.5 was successfully loaded!
    2011-03-20 09:35:46 [INFO] Whitelist: Trying to load whitelist and settings...
    2011-03-20 09:35:46 [INFO] done.
    2011-03-20 09:35:46 [INFO] Whitelist version 2.7 is enabled!
    2011-03-20 09:35:46 [INFO] Minecart Mania Autocart version 1.01 is enabled!
    2011-03-20 09:35:46 [INFO] [Permissions] version [2.5.4] (Phoenix) loaded
    2011-03-20 09:35:46 [INFO] LoginMessage 0.5_4 enabled
    2011-03-20 09:35:46 [INFO] Minecart Mania Core version 1.03a is enabled!
    2011-03-20 09:35:46 [INFO] [LogBlock] Permissions enabled
    2011-03-20 09:35:47 [INFO] [LogBlock] Crating table lb-hell.
    2011-03-20 09:35:47 [INFO] [LogBlock] Crating table lb-hell-sign.
    2011-03-20 09:35:47 [INFO] [LogBlock] Crating table lb-hell-chest.
    2011-03-20 09:35:47 [INFO] Logblock v0.9b enabled.
    2011-03-20 09:35:47 [INFO] Growbie version 2.2 enabled.
    2011-03-20 09:35:47 [INFO] PorteCoulissante plugin version 1.1.0 by Captain_Chaos enabled
    2011-03-20 09:35:47 [INFO] [HeroicDeath] enabled.
    2011-03-20 09:35:47 [INFO] LWC Using Nijikokun's permissions plugin for permissions
    2011-03-20 09:35:47 [INFO] LWC Loading SQLite
    2011-03-20 09:35:47 [INFO] SQLite Using: Native
    2011-03-20 09:35:47 [INFO] LWC At version: v1.63
    2011-03-20 09:35:47 [INFO] WorldEdit 4.2 enabled.
    2011-03-20 09:35:47 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-03-20 09:35:47 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-03-20 09:35:47 [INFO] WorldGuard: Single session is enforced.
    2011-03-20 09:35:47 [INFO] WorldGuard: TNT ignition is blocked.
    2011-03-20 09:35:47 [INFO] WorldGuard: Lighters are blocked.
    2011-03-20 09:35:47 [INFO] WorldGuard: Lava fire is blocked.
    2011-03-20 09:35:47 [INFO] WorldGuard: Fire spread is UNRESTRICTED.
    2011-03-20 09:35:47 [INFO] WorldGuard 4.0-alpha1 enabled.
    2011-03-20 09:35:47 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    2011-03-20 09:35:47 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    2011-03-20 09:35:47 [INFO] Loading renderer 'org.dynmap.kzedmap.CaveTileRenderer'...
    2011-03-20 09:35:47 [INFO] Activated world 'world' in Dynmap.
    2011-03-20 09:35:47 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    2011-03-20 09:35:47 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    2011-03-20 09:35:47 [INFO] Dynmap WebServer started on /
    2011-03-20 09:35:47 [INFO] Done (0.125s)! For help, type "help" or "?"
    2011-03-20 09:36:12 [INFO] Forcing save..
    2011-03-20 09:36:12 [INFO] CONSOLE: Forcing save..
    2011-03-20 09:36:12 [INFO] Saving chunks
    2011-03-20 09:36:12 [INFO] Save complete.
    2011-03-20 09:36:12 [INFO] CONSOLE: Save complete.
    2011-03-20 09:36:12 [INFO] Unknown console command. Type "help" for help.
    2011-03-20 09:36:26 [INFO] 143 recipes
    2011-03-20 09:36:26 [INFO] Whitelist: Player Nitrama is trying to join...
    2011-03-20 09:36:26 [INFO] allow!
    2011-03-20 09:36:26 [INFO] Nitrama [/] logged in with entity id 92
    2011-03-20 09:36:26 [INFO] Loaded world: world

    2011-03-20 09:36:35 [SEVERE] [LogBlock BlockStats] SQL exception
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'playerid' in 'from clause'
    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.Util.getInstance(
    at com.mysql.jdbc.SQLError.createSQLException(
    at com.mysql.jdbc.SQLError.createSQLException(
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(
    at com.mysql.jdbc.MysqlIO.sendCommand(
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
    at com.mysql.jdbc.ConnectionImpl.execSQL(
    at com.mysql.jdbc.PreparedStatement.executeInternal(
    at com.mysql.jdbc.PreparedStatement.executeQuery(
    at Source)

    driver: com.mysql.jdbc.Driver
    url: jdbc:mysql://localhost:3306/ni4328_1_DB
    username: ni4328_1_DB
    password: xxxxxxxxxx
    delay: 6
    keepLogDays: -1
    defaultDist: 20
    defaultTime: 30 minutes
    toolID: 270
    toolblockID: 7
    toolblockRemove: true
    logExplosions: false
    logFire: false
    logSignTexts: false
    logChestAccess: false
    logLeavesDecay: false
    logTNTExplosionsAs: TNT
    logCreeperExplosionsAs: Creeper
    logFireAs: Fire
    logLeavesDecayAs: LeavesDecay
    usePermissions: true
    - lb-main
    - lb-hell
    - world
    - Nether
  13. Offline


    I assume, that you missed the sql tables upades somehow. You have to run both for v0.7 and v0.7b
  14. Offline


    Rollback doesn't work on this #556. It finds the amount of changes, then says "this will take 0 seconds" and nothing happens. We have a lot of griefing I want to roll back but it isn't working.
  15. Offline


    Please post a log from a player you want to rollback.
    0 seconds means, there are less than 1000 block to rollback.
    You can also try this build, but you have to be careful, since it replaces alls blocks with "someone destroyed air" actual with air.
  16. Offline


    Can you add coordinates to the log files?
  17. Offline


    Um, yes, of course. Any markup suggestions?
  18. Offline


    Hmmm. Anything similar to this would work fine:

    03-20 19:45:54 (251, 40, 50) PlayerName destroyed wood
  19. Offline


    is .9b compatible with 493? i would like to upgrade to log chest access but im stuck on 493 due to my servers large amount of plugins not all being updated. I dont want to upgrade if its going to break then we will have no anti grief.
  20. Offline


    LogBlock will work, but rollbacks don't.
  21. Offline


    Someone flooded a town with water. Is there any way to figure out who did it with LogBlock? I tried /lb block water, but it just shows who replaced water with another block to try to stop the flood.
  22. Offline


    This is a problem with the commands, they are mainly the same as the old LB for hMod, but some modes aren't really handy, so I have to rewrite some of them.
    You can still find the griefer from the db:
    SELECT * FROM `lb-main` INNER JOIN `lb-players` USING (`playerid`) WHERE type = 'water' and y > ? and y < ? and x > ? and x < ? and z > ? and z < ? order by date desc
    I still have to rewrite the commands ... lots of work :D

    Ah, I just Imagine a new command system.
    there will be only two commands left: /lb area and/lb player, but there will be more (and shorter) parameters, like:
    radius, summarization (list the last blockchanges (like the actual /lb block), sum blocktypes (like /lb player) or sum players (like /lb area), and whether to list/count created or destroyed blocks, or both. Sounds maybe a bit complicated, but it will be much more intuitive than the current system. And much more powerfull. I think, a have a bit work for the next days :D

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


    After updating to the newest version, I now get this error:
  24. Offline


    Run the sql table upades for v0.7 and 0.7b.
    As I see, how much problems this causes, later updates will have an autoupdater.
  25. Offline


    Hello iam again, now the history doesnt work again -.- a older history works but today logblock log nothing -.- i now tested big brother....
  26. Offline


    Did you change the config or install a plugin to cause rhis?
  27. Offline


    no nothing change, no restart, no other plugins, no change in config or db, now i tested big brother, its works
  28. Offline


    I officially love this plugin. Thank you it works perfectly!
  29. Offline


    Thanks. I missed them; just pressumed it would do anything needed automatically, sorry.
    All I need now is worldedit support and it's complete! (not possible right now, I know, but...).
  30. Offline


    I saw this, and I'm going to add this, as soon as it's possible. Besides I added alredy WE selection support for /lb rollback cuboid (will be in next update).
  31. Offline


    is it "worldNames : [world,East,West]"

    or is it
    - East
    - West
    - World

Share This Page