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

    lboy777

    Hey there DiddiZ, I recently installed your plugin and created a MySQL server but nothing is working.
    Logblock connects to my mysql, creates all the tables needed but when i enter the game the tools do nothing and when i place/delete blocks nothing is recorded into the mysql server, the only thig thing in my mysql server is the tables and my username under lb-players table. As for the tools, they just act as normal blocks/tools and there is no block history information, i've tried several mysql servers and now i am using a localhost based one called WOMP which i like, i've made sure everything is done by the install page and watched several videos but every every time the tools do absolutely NOTHING. If you could help, i would appreciate it

    EDIT: thought id mention that it is my own local bukkit server run off my pc with VERY high specs and i am of course op/admin with bpermissions.admin attached to me !
     
  3. Offline

    hudson21nguyen

    I get this error:


    2012-04-24 15:38:48 [INFO] [LogBlock] Updating tables to 1.51 ...
    2012-04-24 15:38:48 [SEVERE] [LogBlock Updater] Error:
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate column name 'x'
    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.Util.getInstance(Util.java:382)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
    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.Updater.update(Updater.java:171)
    at de.diddiz.LogBlock.LogBlock.onLoad(LogBlock.java:102)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:212)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)


    Should I be worried or just ignore it because LogBlock still works even with this error...
     
  4. Offline

    shauwk

    Did u change the logged world names in config? The default logged world is callled world so u have to change that or it cant log ur world


    Btw ddidiz , is logblock gona die since theres guardian now? Or will it still be updated cuz i like the logblock commands more than the other logging plugins. It alot easier to remember
     
  5. Offline

    Molokax

    Can there be to convert the Guardian DB to LogBlock DB ?
     
  6. Offline

    lboy777

    Well my world name is World anyway and i did check that, i even tried another world with a different name and also changed it in the config but it still wont work !

    I've also made sure that everything that is case sensitive is done properly !
     
  7. Offline

    DiddiZ

    There is a command to check if a world is logged, and what is logged there:
    /lb logging
    That's just the autoupdater. Set the version in LB config to '1.51' and the error message will disappear.
     
  8. Offline

    lboy777

    yes my world is being logged everything that i selected true in the world file, so i dunno why the tools are not working !
     
  9. Offline

    Snowkril

    For some reason my logblock isn't working propertly, but I wonder if it is because I don't use spout on my server. I am running a tekkit server and it only seem to log blocks that have been destroyed and crops that has been placed.

    It doesn't seem to log stones, obsidian etc..
    Is there something I have done wrong?

    ps: I know the plugin isn't supported, but I just wanted to give it a try.
     
  10. Offline

    Malific

    Posting this here and in the MCMMO forums, not sure how the issue works.

    In MCMMO plugin there are abilities that allow blocks to be broken faster. PowerBreaker and GigaDrill, when these abilities are used, all blocks broken are logged twice in Logblock. This is not an issue in and of itself but is causing false positives when I'm checking for X-Ray hacking via diamond block break vs stone percentages since the diamonds are appearing twice.

    Sadly I have no console code or errors to give, just a snippet of logblock log with an example:
    Code:
    04-13 03:08:02 Fire_Assassin_77 destroyed stone at 329:5:-1436
    04-13 03:08:02 Fire_Assassin_77 destroyed stone at 329:5:-1435
    04-13 03:08:04 Fire_Assassin_77 destroyed diamond ore at 329:7:-1436
    04-13 03:08:04 Fire_Assassin_77 destroyed diamond ore at 329:7:-1436
    04-13 03:08:04 Fire_Assassin_77 destroyed diamond ore at 330:6:-1436
    04-13 03:08:04 Fire_Assassin_77 destroyed diamond ore at 330:6:-1436
    04-13 03:08:05 Fire_Assassin_77 destroyed diamond ore at 330:6:-1435
    04-13 03:08:05 Fire_Assassin_77 destroyed diamond ore at 330:6:-1435
    04-13 03:08:05 Fire_Assassin_77 destroyed diamond ore at 329:7:-1435
    04-13 03:08:05 Fire_Assassin_77 destroyed diamond ore at 329:7:-1435
    04-13 03:08:05 Fire_Assassin_77 destroyed diamond ore at 330:7:-1436
    04-13 03:08:06 Fire_Assassin_77 destroyed diamond ore at 330:7:-1436
    04-13 03:08:06 Fire_Assassin_77 destroyed diamond ore at 330:7:-1435
    04-13 03:08:06 Fire_Assassin_77 destroyed diamond ore at 330:7:-1435
    
     
  11. Offline

    mip6886

    Is it possible to have rollback feature for a region(world guard). And i know about the area command but i would like region if possible :)

    IE. /lb rollback region myhouse
     
  12. Offline

    DiddiZ

    kk, do you've got the necessary permissions?
    /lb permissions
    I see, but it looks more like an mcMMO issue. Seems like it uses instaBreak (which is logged) and provides the broken blocks manually to LB to log these twice.

    Nice idea

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

    lboy777

    I believe I do, like I said in my first post, its my server, im op'd and i have bpermissions.admin binded to me.

    /lb permissions gives me
    logblock.me
    .lookup
    .tp
    .rollback
    .clearlog
    .hide
    .ignoreRestrictions
    .spawnTools
    .tools.toolblock
    .tools.tool

    Im guessing that is all of them?, so I still cant figure out why it not working :(
     
  14. Offline

    rtcabooservb

    I'm sure this has already been answered, so please excuse my ignorance.

    Players can still use /logblock tool and /logblock toolblock even though they don't have permission to. They can continue to get logs even though they don't have permission to. Without disabling permissions so logblock is only for OPs, (because I want moderators to view logs too without being an OP), is there a way or temp fix to block the command so members can't gather logs or free items (bedrock and pickaxe)?
     
  15. Offline

    Malific

    Go into the config.yml there are settings for both of those currently set-up to be on as "true" make them "false" and it makes it so only people with the perms a can use them.

    DiddiZ you may want to change the default setting for that to false... you're getting this kind of post like 2-3 times a day.

    Also:
    This is what I was told by the MCMMO guys:
    So I dunno, I guess I'll just end up dealing with it.
     
  16. Offline

    vasil7112

    I want everytime my player logout to loose his items in inventory & remove all previous commands & changes he did.
    E.x
    Remove all blocks place after logout
    Remove all blocks remove after logout e.t.c
     
  17. Offline

    Malific

    Logblock is not capable of this, you'll need a plugin that can run commands when a player logs out/in.
     
  18. Offline

    patrickpf

    hey, i installed logblock, it runs fine, i can do /lb tool, but when i right click stuff it does not give me a message
     
  19. Offline

    Po1ntBlank

    Where do I type this? I host the MySQL server on an online free host. I dont know what I do with this

    USE `minecraft`; ALTER TABLE `lb-world` MODIFY x MEDIUMINT NOT NULL; ALTER TABLE `lb-world` MODIFY z MEDIUMINT NOT NULL;
     
  20. Offline

    vasil7112

    I'd like soone if he can to make this..
    Can you or someone else from logblock make this please?
     
  21. Offline

    woodzy

    no idea what this means CB# 2149

    also i tryed to use Guarden and well to be dead honest i had it going for a week and its crap it really is

    03:08:28 [INFO] [LogBlock] [LogBlock] Version check: Your version is up to date
    03:08:28 [INFO] [LogBlock] [LogBlock] Connecting to some-random-ip-number-and stuff...
    03:08:28 [WARNING] Could not get latest artifact information: FileNotFoundExcept
    ion
    03:08:29 [WARNING] Could not get preferred channel details: FileNotFoundExceptio
    n
     
  22. Offline

    knutarn

    Suddenly spammer consol the message here :

    10:38:58 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO `lb-world` (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1335514993), 245, 12, 0, 0, '-1006', 62, '-1871');:
    java.sql.SQLException: Table './minecraft_logblock/lb@002dworld' is marked as crashed and last (automatic?) repair failed
    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.Consumer.run(Consumer.java:292)
    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    at java.lang.Thread.run(Thread.java:679)

    what is wrong?
     
  23. Offline

    DiddiZ

    Maybe your're still runnging v1.50?
    In this case just update to latest dev,
    Your table is corrupted (likely due to an server crash).
    You can try
    Code:
    RERPAIR TABLE `lb-world`;
    But most likely you have to drop it.
    These messages aren't from LB, at lest I don't know them
    You should have got access to phpMyAdmin. There is a tab called SQL where you can execute that.
    /lb logging
    /lb permissions
    Make sure you aren't using version 1.50, use the latest dev insted.
    DiddiZ you may want to change the default setting for that to false... you're getting this kind of post like 2-3 times a day.

    Also:

    This is what I was told by the MCMMO guys:
    So I dunno, I guess I'll just end up dealing with it.[/quote]
    Yup, would be easier, but I want players to be able to detect grief by themselfs, so this is the default.

    Hm, just checked the McMMo code, it's using instabreak so it should work fine. I'm not listening for any special block break event, so I've no clue where the doublets come from.
     
  24. Offline

    knutarn

    no i get this:

    2012-04-27 13:34:16 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO `lb-world-chest` (id, itemtype, itemamount, itemdata) values (LAST_INSERT_ID(), 85, -38, 0);:
    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '7594982' for key 'PRIMARY'
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    at com.mysql.jdbc.Util.getInstance(Util.java:382)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
    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.Consumer.run(Consumer.java:292)
    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    at java.lang.Thread.run(Thread.java:679)
     
  25. Offline

    Po1ntBlank

    Ok well the one i use (freemysql.net) Doesn't have Phpmyadmin. Does anyone know any good online free hosts for MYSql that can use phpmyadmin? I dont have the money to host a paid one, and I use almost all my PC's power to run the server.
     
  26. Offline

    bob7

    .

    I host some great servers, very cheap and affordable! They all come with 1-3 MySQL servers, SSD drives in RAID, and some good processors (Don't remember if it's a i7 or xeon :p). Add me on skype if your interested bob7l.bob7l.bob7l

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  27. Does anyone here know where i can get a version of LogBlock for 1.1 R4 craft bukkit? I run a Tekkit server.
     
  28. Offline

    Atoken

    This is a great plugin but i cant get it work on all my worlds i can get it to work on the first 3 worlds like world nether and end but i have another world and it wont work on tht world

    on mysql for one of my worlds it just says null in all the collems

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

    XanderCrews01

    Did you remember to add it to the list of logged worlds in the config?
     
  30. Offline

    Unknown_Mage

    How would you do that?
    Would it just be /repair table (table name) ?
     
  31. Offline

    Po1ntBlank

    Does anyone know any free alternatives to hosting your own MySQL server? If not, what are most of you using to host one, if not your own computer?
     

Share This Page