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

    Then give me the error log :D
    Set version in config to '1.32'
     
  3. Offline

    NEREVAR117

    I honestly just don't get it. I had my server host setup a domain for MySQL, and I put the information into Logblocks, but nothing happens. I've been reading tuts and tinkering with it for a week now, and have had no luck. Why is MySQL even necessary for this kind of stuff anyways?
     
  4. Offline

    MagikarpLOL123

    A few questions.
    For database what do I enter in? I dont ever remember anything about a database.
    For host and port what do I put in?
    And for user could I just use my email?

    Agreed. Its a peice of dung and should be eleminated from the universe.

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

    agentc0re

    at the CLI, can you gain access to mysql using root?
    Code:
    mysql -u root -p
    
    I'd also recommend not using the root user as the user for the database connection. I'd create a new user, just besure to give that user perms for general access and database access. I've found that webmin works really well for manipulating mysql items. alternatively you can use myphpadmin.

    GL

    Too much information that, if held in a flatfile, would just bog down the whole process.

    Can you post your config and any other relevant information(logs,configs)?
    Mysql is necessary to handle tons of information.

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

    DiddiZ

    At first, you need a MySQL server. install it, ask your hoster or try db4free.net
    Ty, every help with support is appreciated :D
     
  7. Offline

    XRayted

    I don't know why the block spam is coming back, any sugestions? Been trying to change the numbers without success and this is it for now:

    Code:
    consumer:
        delayBetweenRuns: 3
        forceToProcessAtLeast: 15
        timePerRun: 700
        useBukkitScheduler: true
    When we do /lb savequeue it fails and using /reload the server is crashing.
     
  8. Offline

    DiddiZ

    Try latest dev, changed come thing related to queue dumps.
    Local or remote MySQL server?
     
  9. Offline

    XRayted

    Alright will try to find it, thanks. /edit: Found it, you've been busy sir ;)
    We use db4free for the local test server and the rented server.
    The test server got the same issue.
     
  10. Offline

    DiddiZ

    kk, how long does it take to ping db4free??
     
  11. Offline

    XRayted

    My local server ping is:
    Code:
    Microsoft Windows [versie 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Alle rechten voorbehouden.
    C:\Users\Ray>ping db4free.net
    Pingen naar db4free.net [88.198.43.24] met 32 bytes aan gegevens:
    Antwoord van 88.198.43.24: bytes=32 tijd=26 ms TTL=54
    Antwoord van 88.198.43.24: bytes=32 tijd=25 ms TTL=54
    Antwoord van 88.198.43.24: bytes=32 tijd=26 ms TTL=54
    Antwoord van 88.198.43.24: bytes=32 tijd=25 ms TTL=54
    Ping-statistieken voor 88.198.43.24:
        Pakketten: verzonden = 4, ontvangen = 4, verloren = 0
        (0% verlies).
    De gemiddelde tijd voor het uitvoeren van één bewerking in milliseconden:
        Minimum = 25ms, Maximum = 26ms, Gemiddelde = 25ms
    C:\Users\Ray>
     
  12. Offline

    DiddiZ

    Hm, try:
    timePerRun: 4500
    delay: 5

    And clear out your table a bit to make index generation faster.

    If that isn't enough you need a MySQL server at localhost.
     
  13. Offline

    XRayted

    Thank you very much, tomorrow update day and hopefully I can sort it all.
    Sorry for your time as I tried to find it by google, but ran out of options and posted here.

    forceToProcessAtLeast: 15 is ok?
     
  14. Offline

    DiddiZ

    With the setting above, forceTo shoudn't apply, as it should use free time between two runs (which is 500ms in this case, so really something different as when using delay 6 and time 200 :D)
     
  15. Offline

    XRayted

    Gotcha and will remind that to help out someone else, if they are asking ;)
    Spread the word: LogBlock :D
     
  16. Offline

    DiddiZ

    hehe :D
    And I should really stop using seconds and milliseconds mixed in same config section ...
     
  17. Offline

    XRayted

    Lolz, its getting late for you man :p

    I have to see if this was posted in earlyer posts here:
    Code:
    2011-10-23 18:37:09 [SEVERE] Error occurred while enabling LogBlock v1.32 (Is it up to date?): null
    java.lang.NullPointerException
     at de.diddiz.LogBlock.LogBlock.onEnable(LogBlock.java:110)
     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  18. Offline

    NEREVAR117

    Actually, I believe I got it working now. Finally!

    I still don't understand why MySQL is necessary though?
     
  19. Offline

    XRayted

    You need that for the database and use "rollback" if needed and other nice features LogBlock does.
     
  20. Offline

    agentc0re

    imagine every thing you do in minecraft. Now imagine those tasks, and break them up into mini tasks. IE: open a chest and grab a block.
    Well you have to read, who's doing that.
    Where is this happening?
    What kind of chest is it?
    How many and what kind of items are in the chest PRE opening?
    Did any get removed?
    Did any get added?
    Time's this all started for each separate, triggered event.
    Time chest was closed.
    ....
    ETC, etc. etc.

    Imagine very detailed increments of everything you do in minecraft, and then imagine away to log them efficiently and than at anytime, wanting to access any single part of that information. Now imagine logging that for you and just a few other people, how much data do you think that is? Tons!
     
  21. Offline

    XRayted

    Offtopic, are the servers down? Can't seem to login on the server and tested on my Test server(which needs updates, but was working) and can't login there too.
     
  22. Offline

    RenderedUnsafe

    How do I get one?
     
  23. Offline

    ericmck2000

    So..... how can i avoid having lb Q up 300,000 items and making over 400 .sql files.... In trying to restore some grief earlier, It told me it could not see any changes. I looked at the console, and it over nearly a half a million items in its Q. I changed the settings to what i figured would make it store the data quicker. I turned bukkitschedular off, because, It couldnt be much worse...

    consumer:
    delayBetweenRuns: 1
    forceToProcessAtLeast: 10000
    timePerRun: 1000
    useBukkitScheduler: false

    These are the settings i switched to
    consumer:
    delayBetweenRuns: 1
    forceToProcessAtLeast: 10
    timePerRun: 1000
    useBukkitScheduler: true

    Was the orignal settings.

    Help? I have no idea if the new settings are doing much, because, at the rate its going, it will be importing the .sql files for another hour or two....
     
  24. Offline

    DiddiZ

    For pex as example it's the Permissions.jar included in the zip.

    The settings are maxed, you need a local mysql server.
    Maybe cleaning up the table a bit might also speed queue processing up.

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

    ericmck2000

    Its using a mysql database.

    It also throws a couple errors here and there when doing lb lookups and a few other functions. When it works, it works amazing though. It just somehow gets backed up time to time.

    Edit...

    I think that did fix the problem. Had a few "incidents" earlier, Worked perfectly.

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

    davvem

    No, i don't seem to remember the password either =o How do i change pass and username? :(
     
  27. Offline

    DiddiZ

  28. Offline

    mnpeep

    Does anyone know what the settings are for the default chat table? Mine can't add a table for some reason, so I need to do it manually.
     
  29. Offline

    Herogx

    here is the error log
    Code:
    10-23 12:07:47 Bukkit provided no block type for the block broken by Herogx at world:-294:68:181.
    10-23 12:07:49 Bukkit provided no block type for the block broken by Herogx at world:-297:68:180.
    10-23 12:07:51 Bukkit provided no block type for the block broken by Herogx at world:-294:67:177.
    10-23 12:07:52 Bukkit provided no block type for the block broken by Herogx at world:-293:68:178.
    10-23 12:07:53 Bukkit provided no block type for the block broken by Herogx at world:-293:67:179.
    10-23 12:07:53 Bukkit provided no block type for the block broken by Herogx at world:-292:68:179.
    10-23 12:07:54 Bukkit provided no block type for the block broken by Herogx at world:-293:68:180.
    10-23 12:08:12 Bukkit provided no block type for the block broken by Herogx at world:-275:71:122.
    10-23 12:08:13 Bukkit provided no block type for the block broken by Herogx at world:-276:71:122.
    10-23 12:08:16 Bukkit provided no block type for the block broken by Herogx at world:-274:71:120.
    10-23 12:08:16 Bukkit provided no block type for the block broken by Herogx at world:-275:71:121.
    10-23 12:08:17 Bukkit provided no block type for the block broken by Herogx at world:-276:71:120.
    10-23 12:08:18 Bukkit provided no block type for the block broken by Herogx at world:-276:71:119.
    10-23 12:13:50 Bukkit provided no block type for the block placed by Rantz at world:-227:62:163. Item in hand was: MELON_STEM.
    10-23 12:13:54 Bukkit provided no block type for the block placed by Rantz at world:-227:62:163. Item in hand was: MELON_STEM.
    10-23 12:13:58 Bukkit provided no block type for the block placed by Rantz at world:-227:62:162. Item in hand was: MELON_STEM.
    10-23 12:14:03 Bukkit provided no block type for the block placed by Rantz at world:-227:62:163. Item in hand was: MELON_STEM.
    10-23 12:14:11 Bukkit provided no block type for the block placed by Rantz at world:-227:62:163. Item in hand was: MELON_STEM.
    10-23 12:14:12 Bukkit provided no block type for the block placed by Rantz at world:-227:62:162. Item in hand was: MELON_STEM.
    10-23 12:14:14 Bukkit provided no block type for the block placed by Rantz at world:-227:62:163. Item in hand was: MELON_STEM.
    
     
  30. Offline

    DiddiZ

    Depends on the error message. But genereally:
    https://github.com/DiddiZ/LogBlock/wiki/MySQL-Schema
    @Herogx
    Ty, you gave me an idea
     
    mnpeep likes this.
  31. Offline

    Herogx

    Really? cool, errr your welcome

    also my server host managed to fix the error with that info, a thank you siar

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

Share This Page