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

    DiddiZ

    Hm, explained it in some post here, but can't find it right now.
    replaced is the block type before and type the block type after. (it'wasn't me who named the colums :D)
    so, a destroyed log would look like replaced 17, type 0, data 0.
    data is either the block data of the placed or the destroyed block, in case it's a block replace (like snow) it's always the data of the placed block.
    I case you want to write a player statistic, I've done one some days ago. it's not that nice, but it works :D
    http://insane-architects.net/?page=lbstats
    I will release the source someday, but when you're interested I can send you a copy.

    BTW:
    Binding queries to tools works now. You can define a default query in config and change it ingame (when you have the permission)
     
  3. Offline

    Zone

    I see a simple life if logblock had a tool like (WorldEdit with the client-side addon!) select region using the tool. type in rollback -player and/or time. Bam!! done!! No more area stuff.
     
  4. Offline

    lolzrofl

    This gives me "Wrong argument" I have version 15b
     
  5. Offline

    ultimak

    You do know that you can rollback an area thats selected by worldedit right? Its so easy to rollback areas using that method.
     
  6. Offline

    Zone

    That just made my day! How do I go about doing that?
     
  7. Offline

    DiddiZ

    Well, the new commands sytem isn't released yet
    Make a selection with the WorldEdit tool (wood axe) and type:
    /lb rollback selection 1 day
    Atm this doesn't sopport lookup or rollback only a specific player, but with the new commands system it will.
     
  8. Offline

    Flatliner

    You can make a selection using your world edit wand, then the command you want is:
    /lb rollback selection

    You can put a time at the end if needed.

    *oops should have noticed i hadn't refreshed the thread in a while.
     
  9. Offline

    DJ411

    do u have to setup the MySQL hosting thing before you can use commands? cause i can't get any commands to work and idk if its logging anything.

    LogBlock version 0.15
    Craftbukkit version 740
     
  10. Offline

    DiddiZ

    Without a MySQL server LB won't even start.
     
  11. Offline

    DJ411

    thanks. I will attempt to make a MySQL thing and set up the config.
     
  12. Offline

    MangoStarr

    Hey I just installed and I'm getting this every once in a while..

    Code:
    [SEVERE] [LogBlock Consumer] Failed to get generated keys
    I can use the commands ingame but it's not logging anything..

    Am I doing something wrong..?


    Nevermind, I got it to work ;)
     
  13. Offline

    idrol

    i instaled logblock yesturday but wut are the commands cuse /lb don't work
     
  14. Offline

    DiddiZ

    When "/lb" doesn't show anything, LogBlock refuses to start due to an inproper config, or a missing MySQL connection. LB should cause an error log at start up.
     
  15. Offline

    idrol

    does logblock have to run with mysql i got a plugin for it but i don't got it set up

    btw i pay multiplay to host my server and the logs multiplay should write aren't there

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

    DiddiZ

    It's finally there (after a duke like developement time): The new commands system preview:

    For all who are interested in, there is a preview to the new commands system. Basicly all works exept lookup signs. I still work on some features like rollback signtext before release of v1.00. Besides there are no known crashs or vulnerabilities, I strongly to recommend to run this build ONLY at a test server. An example how to use the new commands is in the main post. I'll write a detailed commands reference, but this will take time. And I'll also make a vid (starring my brother as griefer :D)
     

    Attached Files:

  17. Offline

    DiddiZ

    It seems like you didn't get the whole concept of using a database. You have to setup a MySQL server.
    server.log? Do you've access to the console?
     
  18. Offline

    idrol

    i got aces to the console and i got server.log but it stopes writing logs 2 days ago

    i'm gona ask multiplay to set up an musql database for me found on multiplays forum the i need to ask them to get mysql

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

    Lunar Delta

    I switched to Log Block from Big Brother due to the latter's increasing instability. Been working flawlessly since day one. :)
     
  20. Offline

    DiddiZ

    I'm interest in knowing the cause. Heard about that problem a few times, but don't know what it causes, or how to fix.
    Yup, that could help :D
    Nice :)
     
  21. Offline

    DJ411

    Tell me how it goes. I'm in charge of this forums server and the use multiplay as well. I'm using some free MySQL site but LogBlock stops working after the first 10 minutes.
     
  22. Offline

    Mentioum

    Can this log lever and button usage?
     
  23. Offline

    Flatliner

    Just curious. Was experimenting with the redo command a bit earlier and I've noticed that it often "redos" stairs and things facing in the wrong direction. Is there any way that could be fixed in a future version?

    Btw, tried out the beta version and it worked pretty well. Had one mess up though where we tried to use last as an argument for redo and it ended up redoing all of our actions since the beginning of time :/ I think that was more user error than anything though, so if it's not something you've seen then I wouldn't class it as a bug.
     
  24. Offline

    DiddiZ

    Not atm, but the database structure would allow that. Comes to the todo list, with low priority.
    Will have a look on it.
    Ah, forgot to add the default time, thanks :D
     
  25. Offline

    Mentioum

    Brilliant thank you very much - we have guests who can use levers and such so it would be nice to be able to check if they used automatic farms and such or spammed minecart dispensers e.t.c
     
  26. Offline

    JSmoove98

    is there a way to turn off the bedrock lookup thing so I can actually place it?
     
  27. Offline

    KimKandor

    Nice plugin, glad it was suggested to me. Now that I've learned to use it more effectively it's a must have. :)
     
  28. Offline

    Kalimia

    I might work on a PHP report gen/ viewer and perhaps even try and integrate it with the Tectonicus deep map renderer, the maps are too big for me to host online but they would be great locally for me to visually see what and where people are building, perhaps shade "highlight" blocks with color coding so i can see what areas players have worked in.

    Edit: Also Awesome mod thanks tonnes.
     
  29. Offline

    MikeA

    For some reason when I rollback players actions, it does not rollback water and lava placed by buckets. How can I enable lava/water bucket logging? Really helpful. :)

    Thanks,
     
  30. Offline

    Emmett97

    Sometime's it doesnt log any records for some people. Anyone know anything about this issue?
     
  31. Offline

    DiddiZ

    Hm, atm you can only set the lookup tool to a different block, but thanks for the suggestion :D
    Wow, would be an awesome feature. In that case, you might want to have a look on this code:
    Code:
    private class HistoryFormatter
    {
        private final SimpleDateFormat formatter = new SimpleDateFormat("MM-dd HH:mm:ss");
        private final SummarizationMode sum;
        HistoryFormatter(SummarizationMode sum) {
            this.sum = sum;
        }
        String format(ResultSet rs) {
            try {
                if (sum == SummarizationMode.NONE) {
                    final StringBuffer msg = new  StringBuffer(formatter.format(rs.getTimestamp("date")) + " " +  rs.getString("playername") + " ");
                    final int type = rs.getInt("type");
                    final int replaced = rs.getInt("replaced");
                    if (type == 63 || type == 68 || replaced == 63 || replaced == 68) {
                        final String signtext = rs.getString("signtext");
                        final String action;
                        if (type == 0)
                            action = "destroyed ";
                        else
                            action = "created ";
                        if (!signtext.contains("\0"))
                            msg.append(action + signtext);
                        else
                            msg.append(action + "sign [" + signtext.replace("\0", "] [") + "]");
                    } else if (type == replaced) {
                        if (type == 0)
                            msg.append("did a unspecified action");
                        else if (type == 23 || type == 54 || type == 61)
                            msg.append("looked inside " + getMaterialName(type));
                    } else if (type == 0)
                        msg.append("destroyed " + getMaterialName(replaced));
                    else if (replaced == 0)
                        msg.append("created " + getMaterialName(type));
                    else
                        msg.append("replaced " + getMaterialName(replaced) + " with " + getMaterialName(type));
                    return msg.toString();
                } else if (sum == SummarizationMode.TYPES)
                    return fillWithSpaces(rs.getInt("created")) +  fillWithSpaces(rs.getInt("destroyed")) +  Material.getMaterial(rs.getInt("type")).toString().toLowerCase().replace('_',  ' ');
                else
                    return fillWithSpaces(rs.getInt("created")) +  fillWithSpaces(rs.getInt("destroyed")) + rs.getString("playername");
            } catch (final Exception ex) {
                return null;
            }
        }
    }
    Hm, you just found a bug :D
    It's a problem due to not applying physics to rolled back blocks, sinceI can'r prevent sandblocks from falling, I'll reenable physics.

    No, but I'm interested in solving that. Can I get some details?
     

Share This Page