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

    zorro300

    -_- 0 rows affected
     
  3. Offline

    DiddiZ

    Just read that 0 rows is ok

    So grant privileges again and it should work
     
  4. Offline

    zorro300

    did it again,
    still same
    access denied for user (using password : yes)
    i try make one without pass

    even without password i get the access denied

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

    DiddiZ

    before we spam the whole thread, add me on skype (hawky.diddiz) :D
     
  6. Offline

    extracharged

    im sorry im being a pain, but how do i find out the mySQL server?
     
  7. Offline

    †orben

    It won't work ..
    2011-06-27 11:46:33 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-06-27 11:46:33 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-06-27 11:46:33 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-06-27 11:46:33 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-27 11:46:33 [INFO] WorldEdit 4.4 enabled.
    2011-06-27 11:46:33 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-06-27 11:46:33 [INFO] PvP Control version 1.5 is enabled!
    2011-06-27 11:46:33 [INFO] [iChat] Found Permissions (v3.1.5)
    2011-06-27 11:46:33 [INFO] iChat (v2.3.1) enabled
    2011-06-27 11:46:33 [INFO] [iConomyChestShop] version 2.75 initialized!
    2011-06-27 11:46:33 [INFO] [iConomyChestShop] Permissions version 3.1.5 loaded.
    2011-06-27 11:46:33 [INFO] [iConomyChestShop] LWC version 3.11 loaded.
    2011-06-27 11:46:33 [INFO] Appleseed: ShowErrorsInClient=true
    2011-06-27 11:46:33 [INFO] Appleseed: DropInterval=60 seconds
    2011-06-27 11:46:33 [INFO] Appleseed: WandItem=wood_hoe
    2011-06-27 11:46:33 [INFO] Appleseed: MinimumTreeDistance=disabled
    2011-06-27 11:46:33 [INFO] Appleseed: TreeTypes=(apple,cocoa_beans,cookie,golden_apple)
    2011-06-27 11:46:33 [INFO] Appleseed: Permissions 3.1.5 found
    2011-06-27 11:46:33 [INFO] Appleseed: WorldGuard 5.0-alpha10 found
    2011-06-27 11:46:33 [INFO] Appleseed: 3 trees loaded in world BioWorld.
    2011-06-27 11:46:33 [INFO] Appleseed: 0 trees loaded in world BioWorld_nether.
    2011-06-27 11:46:33 [INFO] Appleseed version 0.5.0 is enabled!
    2011-06-27 11:46:33 [INFO] NoExplode version 1.4 is enabled!
    2011-06-27 11:46:33 [INFO] LWC Loaded 134 locale strings (0 overrides)
    2011-06-27 11:46:33 [INFO] LWC Using Permissions API...
    2011-06-27 11:46:33 [INFO] LWC Loading SQLite
    2011-06-27 11:46:33 [INFO] SQLite Using: Native
    2011-06-27 11:46:33 [INFO] LWC At version: v3.11
    2011-06-27 11:46:33 [INFO] [MagicCarpet] MagicCarpet version 1.5.5 is enabled!
    2011-06-27 11:46:33 [INFO] [MagicCarpet] Take yourself wonder by wonder, using /magiccarpet or /mc.
    2011-06-27 11:46:33 [INFO] [MagicCarpet] Using Permissions.
    2011-06-27 11:46:33 [INFO] FalseBookIC v0.85alpha by GeMo enabled
    2011-06-27 11:46:33 [INFO] FalseBookExtra v0.85alpha by GeMo enabled
    2011-06-27 11:46:33 [INFO] [iConomy] Logging is currently disabled.
    2011-06-27 11:46:33 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    2011-06-27 11:46:33 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-06-27 11:46:33 [INFO] [SimpleSpleef] Successfully linked with iConomy 5.0+.
    2011-06-27 11:46:33 [INFO] [Warpz0r] Found iConomy (v5.01)
    2011-06-27 11:46:33 [INFO] [iConomyChestShop] iConomy version 5 loaded.
    2011-06-27 11:46:33 [INFO] [iConomy] hooked into Permissions.
    2011-06-27 11:46:33 [INFO] LogBlock disabled.
    2011-06-27 11:46:33 [INFO] Done (0.154s)! For help, type "help" or "?"
    2011-06-27 11:46:33 [INFO] [FalseBook Block] 0 Areas loaded.
    2011-06-27 11:46:33 [INFO] [FalseBook Block] 2 Bridges successfully loaded.
    2011-06-27 11:46:33 [INFO] [FalseBook Block] 0 Doors successfully loaded.
    2011-06-27 11:46:33 [INFO] [FalseBook Block] Gates successfully loaded.
    2011-06-27 11:46:33 [INFO] [FalseBook IC] plugins/FalseBook/Transmitter.db not found.
    2011-06-27 11:46:33 [INFO] [FalseBook IC] plugins/FalseBook/Receiver.db not found.
    2011-06-27 11:46:33 [INFO] [FalseBook IC] plugins/FalseBook/SensorList.db not found.
    2011-06-27 11:46:33 [INFO] ControllerBlock: Loaded v1 data - 0 ControllerBlocks loaded

    That's Server log .. Pleas help me :O !
     
  8. Offline

    DiddiZ

    When u ask so, I assume that you don't have one. You can make on at db4free.net.
    @†orben
    I'd be interested in the error log. As LB loads before most plugins, the reason should be on top.
     
  9. Offline

    zorro300

    I added you DiddiZ :)
     
  10. Offline

    Rickster

    Okay, so it says "Error while fetching connection
    Access denied for user 'server'@'localhost' (using password: NO)

    I have a password, and I put it in the config file, so why is it not using it? Do I have to set something to tell it to use the password?
     
  11. Offline

    DiddiZ

    Um, do you've the pw in single quoutes? (' ')
    When it doesn't helps, you might have to recreate the config.
     
  12. Offline

    KillerSmurf

    @DiddiZ I am getting no errors in my server.log But when i try /lb rollback player namehere 3 minutes (or any time) It says internal error...etc
     
  13. Offline

    DiddiZ

    /lb rollback player <name> since 3 minutes
     
  14. Offline

    dkeulen

    alright i got LB running yaaay. but im wondering can i rollback items taken from a chest?
    if so, how? :p

    i mean if a player got his chest griefed (stealllliiinnnggg is wrong ;) ) can i give the items back with lb too?
     
  15. Offline

    KillerSmurf

    I did that to.... didnt work.... :(
     
  16. Offline

    DiddiZ

    You need to have chest logging enabled.
    Then there are multiple ways:
    Either rollback the player in that area:
    /lb rp player <name> area 0
    or use tools:
    /lb tool area 0 player <player> chestaccess
    /lb tool mode rollback
    and click that chest
    Are u using latest LB version?

    Finally nice looking webstats:
    [​IMG]
    -> https://github.com/DiddiZ/LogBlock/wiki/Webstats


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

    yaitsbilly

    I keap getting this error when useing webstats,But there are no error on console side.

    Notice: Undefined variable: counter in C:\wamp\www\lbwebstats\index.php on line 73

    Notice: Undefined index: lastquery in C:\wamp\www\lbwebstats\index.php on line 16

    Notice: Undefined variable: counter in C:\wamp\www\lbwebstats\index.php on line 51
     
  18. Offline

    Pyraah

    Hi,

    I love this plugin *-*.
    But I've some suggests :
    • log the environment movment (sand... ) for rollback exactly.
    • If destroy a block with torch, put a new torch with rollback.
    • Log paintings
    And I've a little problem, signs blanks after rollback (the plugin say "X errors", X = signs blanks).

    Sorry for my english, I'm french :oops: .
     
  19. Offline

    yashua

    Anyone having trouble running this with permissions 3 I'm going to go get errors now
     
  20. Offline

    DiddiZ

    Insert the following somewhere in your config.php:

    Code:
    error_reporting(0);
    1 and 2: I'm missing the hooks.
    3: Paintings are difficult to handle since these aren't blocks, but it's planned
    You're right, I might have messed it up. Have to fix it :D
    Works fine on my test server. What errors?
     
  21. Offline

    yashua

    2011-06-28 04:26:37 [SEVERE] [LogBlock] Error while loading:
    java.lang.NullPointerException
    at de.diddiz.LogBlock.LogBlock.onLoad(LogBlock.java:68)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:121)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:356)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-28 04:26:37 [INFO] [Permissions] (Yeti) disabled successfully.

    When I enable logblock it disables permissions? both updated to latest
     
  22. Offline

    DiddiZ

    Strange, but at loading LB doesn't use Permisssions in any way. On line 68 LB makes a connection check, it should throw some more exceptions before. Maybe you messed up the permissions config while adding LB permissions?
     
  23. Offline

    TheSidewinder

    I have a problem ;)

    Code:
    2011-06-26 20:53:48 [SEVERE] [LogBlock] Error while loading:
    java.util.zip.DataFormatException: worldNames or worldTables not set properly
        at de.diddiz.LogBlock.Config.<init>(Config.java:204)
        at de.diddiz.LogBlock.LogBlock.onLoad(LogBlock.java:57)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:345)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:247)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:428)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:413)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  24. Offline

    DiddiZ

    I guess you added a world, for forgot to specify a table fo that.
     
  25. Offline

    thorncrown

    Is it possible to store existing blocks?
    I started to use LogBlock some days ago, but there are so many housings etc. which are not "protected", because they are already there. So they have no SQL entry. Is there any way to save them?
     
  26. Offline

    DiddiZ

    They are save, since breaking blocks get logged and you've only to rollback these changes.
     
  27. Offline

    thorncrown

    That's the problem. All existing blocks doesn't get logged after breaking them the first time. Don't ask me why.. When I destroy an existing block and check it with the toolblock there is no entry. When i create a new one the destruction will be logged.
     
  28. Offline

    DiddiZ

    Are u sure u wait until the block change gets from queue into the database?
    Try /lb savequeue before checking.
     
  29. Offline

    thorncrown

    I tested it a few times now. Blocks which have existed before LogBlock have no entry when I destroy them. I destroyed a few "old" blocks, saved the queue, waited 10 minutes - no entry. When I place a new block it will be logged. My admins're telling me the same story. Any idea how we can fix that? Everything else btw works just great! No errors, no problems.
     
  30. Offline

    DiddiZ

    Sounds strange. You may give me your ip so I can take a look.
     
  31. Hi, I finally got this plugin up and running. How do i view the log that this is keeping? Like, where can i view all the kills and fire and junk? I'm new to mysql and I can't seem to locate the database. I use TCAdmin with bukkit.
     

Share This Page