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

    1born2kill

    for the selection, do i have to do //chunk?

    can i use pos1 and pos2, then do that command?
     
  3. Offline

    beastXL

    sorry for being nooby, but what does CB mean?
     
  4. Offline

    Jamie Tees

    Craft bukkit*
     
  5. Offline

    DiddiZ

    You just need to have WorldEdit installed and to have the permissions to make selections (worldedit.selection.* if I remember correctly)
    You can either use the wand (//wand and click to blocks) or //chunk, or every other WE command.
     
  6. Offline

    xboxhacks

    LogBlock seems to be deleting the lb-main entrys when i boot up the server.
     
  7. Offline

    DiddiZ

    Did you enable autoclearlog? Disable it again :D
    clearlog.enableAutoClearlog in main config.
     
  8. Offline

    macman

    Are you planning to add EnderDragon logging? It would be useful when you have ./spawnmob on a server :p
     
  9. @DiddiZ

    Someone just made about 100 snow golems in my creative world and they had a blast covering just about everything in snow. Unfortunently for me thats not logged so i cant remove it short of backbreaking work or restoring a backup. I would be extremely happy if the snow creation gets logged so i can rollback it.
     
  10. Offline

    number1_Master

    ok, ill give you as much info as i can on this one
    @DiddiZ , I have finally gotten mysql running using XAMPP and I created a database called logblock. In the config I typed in my password (you can't know that :p ), my username (xampp), the database (logblock), the host (localhost and I did try 127.0.0.1) and the port, which is 3306 and I'm pretty sure, I see that in every file within the XAMPP folder. Also, when I log into XAMPP it says localhost:80, but thats freezes the server if I use that as the port. I still get this error:
    http://pastebin.com/UMn2f8Sx
    I know it has to do with mysql. When making a mysql database, it does ask me for a 'mysql connection collation.' I leave it on 'utf8_general_ci' because that is default, and because I don't understand the other hundreds of options.
    Hope you can help (or tell me what I should do which is still help), I REALLY NEED HELP. BigBrother is officially gone and even HawkEye requires mysql. So whats the point of having mysql for HawkEye when my original plan was LogBlock. PLEASE HELP!
    Here is my config if you need it:
    http://pastebin.com/UtpwBXe1
     
  11. Offline

    DiddiZ

    Both will be added as soon as there are events for them.
    Btw, if I remember right WorldWdit has a command to remove snow in an area, introduced last winter after every server admin had covered his cities with snow and wondered how to get rid of it next spring :D
    The config seems valid, despite the port. Open the my.cnf/my.ini in mysql directory and search for
    Code:
    [mysqld]
    
    # The TCP/IP Port the MySQL Server will listen on
    port=3306
    And make sure it's really 3306 and restart the mysql server afterwards.
     
  12. Offline

    number1_Master

    heres the my.cnf , and yes actually thats where i got the port (it is 3306)
    http://pastebin.com/s7sy5Ckm
     
  13. Offline

    DiddiZ

    Ah, there is it:
    Remove the line
    Code:
    skip-networking
    The java mysql connection can't use pipes and so has to connect via tcp. That's impossible if the mysql server isn't listening for tcp packages at all :D
     
    nunber1_Master likes this.
  14. Offline

    number1_Master

    THANK YOU!!! I forgot to mention that when accessing phpMyAdmin that I have to open the window about 3 times (the first 2 I get an error). Now, when I did what you said, I got rid of those errors. Yet, I still the database was not allowing connections. So I went back to mysql, and saw a new window, privileges. The username seemed to be root.
    Concluding that little story ( :p ), your help fixed my error BIG TIME!
     
    DiddiZ likes this.
  15. Offline

    strontkever

    using the latest dev builds wont let me connect to the database....

    cfg hasnt changed for user and pass etc

    i was using version 1.32.. updating to 1.41 also doesnt let me connect to the database

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

    WhiteTiger

    will it work for 1.0.0 DevVersion?
     
  17. Offline

    strontkever

    hmm, putting the pw in 'pw' quotes works
     
  18. Offline

    DiddiZ

    Yup, but only with build later about cb #1500.
     
  19. Offline

    number1_Master

    yes
     
  20. Offline

    WhiteTiger

    uumh who can give me a link? :D
     
  21. Offline

    DiddiZ

  22. Offline

    Raycrash

    Everyone on my server can use the pickaxe tool, wihtout permission.
    What do I have to change ? :(
     
  23. Offline

    1born2kill

    Ok so after I use WE to create my 2 Points, then do I use /lb rb sel since time?
     
  24. Offline

    DiddiZ

    Open lb config and set for both tools permissionDefault to 'OP'
    Yup
     
  25. Offline

    isikerkan

    Hei Diddiz, i can't download the LB Webstats. It's says: File not Found?
     
  26. Offline

    DiddiZ

  27. Offline

    Epics

    Just always getting this when I'm on the latest dev build..
    Code:
    2011-12-04 18:15:21 [INFO] [LogBlock] Waiting for consumer ...
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 10
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 9
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 8
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 7
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 6
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 5
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 4
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 3
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 2
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining tries: 1
    2011-12-04 18:15:21 [INFO] [LogBlock] Remaining queue size: 135
     
  28. Offline

    DiddiZ

    MySQL server is very slow or not responding.a
     
  29. Offline

    frymaster

    I have the oddest issue with permissions on the dev snapshots. I'm not using any kind of permissions plugin, just permissions.yml to override the default behaviour. The contents of the file are here:

    http://pastebin.127001.org/1782

    Basically, some of the time it works (non-ops can't access those commands), some of the time no one can access them, and some of the time everyone can access them. It's bizarre. Server startup spam follows:

    Code:
    2011-12-05 02:44:55 [INFO] Starting minecraft server version 1.0.1
    2011-12-05 02:44:55 [INFO] Loading properties
    2011-12-05 02:44:55 [INFO] Starting Minecraft server on 81.19.221.205:25565
    2011-12-05 02:44:56 [INFO] This server is running Craftbukkit version git-Bukkit-1.8.1-R4-84-g1b47f6e-b1557jnks (MC: 1.0.1) (Implementing API version 1.0.0-R1-SNAPSHOT)
    2011-12-05 02:44:56 [INFO] [LogBlock] Version check: Your version is up to date
    2011-12-05 02:44:56 [INFO] [LogBlock] Connecting to [EMAIL]logblock@jdbc:mysql://127.0.0.1:3306/minecraft_logblock[/EMAIL]...
    2011-12-05 02:44:56 [INFO] [Spout] Spout 575 has been initialized
    2011-12-05 02:44:56 [INFO] Preparing level "NE-2012"
    2011-12-05 02:44:56 [INFO] Default game type: 0
    2011-12-05 02:44:56 [INFO] Preparing start region for level 0 (Seed: -1503624037973397876)
    2011-12-05 02:44:57 [INFO] Preparing start region for level 1 (Seed: -1503624037973397876)
    2011-12-05 02:44:57 [INFO] Preparing start region for level 2 (Seed: -1503624037973397876)
    2011-12-05 02:44:57 [INFO] Preparing spawn area: 28%
    2011-12-05 02:44:57 [INFO] LogBlockQuestioner v0.02 enabled
    2011-12-05 02:44:57 [INFO] [dynmap] Using Bukkit Permissions (superperms) for access control
    2011-12-05 02:44:58 [INFO] [dynmap] Loaded 12 shaders.
    2011-12-05 02:44:58 [INFO] [dynmap] Loaded 82 perspectives.
    2011-12-05 02:44:58 [INFO] [dynmap] Loaded 7 lightings.
    2011-12-05 02:44:58 [INFO] [dynmap] Loaded 2 maps of world 'NE-2012'.
    2011-12-05 02:44:58 [INFO] [dynmap] Loaded 2 maps of world 'NE-2012_nether'.
    2011-12-05 02:44:58 [INFO] [dynmap] Loaded 2 maps of world 'NE-2012_the_end'.
    2011-12-05 02:44:58 [INFO] [dynmap] version 0.25.1-624 is enabled
    2011-12-05 02:44:58 [INFO] [LogBlock] Permissions plugin not found. Using Bukkit Permissions.
    2011-12-05 02:44:58 [INFO] [LogBlock] Using Spout as chest access API
    2011-12-05 02:44:58 [INFO] [LogBlock] Scheduled consumer with bukkit scheduler.
    2011-12-05 02:44:58 [INFO] LogBlock v1.42 by DiddiZ enabled.
    2011-12-05 02:44:58 [INFO] Done (0.217s)! For help, type "help" or "?"
    2011-12-05 02:44:58 [INFO] Starting GS4 status listener
    2011-12-05 02:44:58 [INFO] Query running on 81.19.221.205:25565
    
    I don't know if this is a bukkit issue or an issue with your plugin, though I suspect the former
     
  30. Offline

    Smidds

    Hey, not to sure if it's been asked, but how on earth do i rollback fire damage? A buddy of mine torched his house to the ground, and I'm not to sure how to fix it.
    I've been doing "/lb rollback sel player [name] since [time]" and it just isn't working... The fire was placed during 21:19:43, and that's the time I use... Not to sure if there is a specific item command or what.
    (more in depth on the "it's not working", it literally does nothing. It says, Block changes found, rollback? I say yes, it says it's done, I remove the log, and voila! Nothing's happened :confused: Even the log is still there... Any ideas?)
     
  31. Offline

    Joannou1

    @DiddiZ I get the following error

    "2011-12-04 16:04:50 [SEVERE] Error occurred while enabling LogBlock v1.42 (Is it up to date?): null
    java.lang.NullPointerException
    at de.diddiz.LogBlock.LogBlock.onEnable(LogBlock.java:121)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at net.madjawa.pluginreloader.PluginReloader.loadPlugin(PluginReloader.java:215)
    at net.madjawa.pluginreloader.PluginReloader.onCommand(PluginReloader.java:74)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:372)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:368)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:553)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:530)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    I would be pastebin, but its not that long.
    Using CB 1556, using LB version 1.42
     
  32. Offline

    GameplayerHD

    hey bro it says in console that LogBlock disabled. But i added mysql database?
     

Share This Page