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

    Yoav

    How do I see info about players killing animals? I have logKillsLevel set to ANIMALS.

    EDIT: I just figured it out by looking at the mysql database. It doesn't show location of killing though. Will you add it in the future?

    Thanks for a great plugin BTW!
     
  3. Offline

    GayJuice

    Hi

    I did a fresh install of logblock on craftbukkit R1 everything installed correctly and the tables were created in the DB but it is not logging any data in the table except for lb_players. I have the world listed in the config in the loggedworlds bit and i have pastebinned the world.yml were you can see that logging is enabled.

    loggedWorlds:
    - world
    - world_nether
    - world_the_end

    Any ideas?
     
  4. Offline

    macman

    Hello,

    I think I have a bug report here, When a player with creeper in there name joins and you try to roll back Creeper the mob it trys to rollback the player creeper, Anything I can do to fix?
     
  5. Offline

    DiddiZ

    Location were added in a recent dev build
    Try "/lb queuesize" or "/lb savequeue"
    Yeah, um, no. I didn't thought there were really active playeres with these names.
    Only thing you can do is using area for creeper rollbacks.
     
  6. Offline

    macman

    Do you plan to fix on a later build?
     
  7. Offline

    Geographer

    Thank you for a fantastic plugin ! Its been amazingly helpful so far.

    One question I have, is there a way to limit the database size ? or delete stored data after x amount of time ?

    I have seen these options in the config file

    enableAutoClearLog: false auto: - world "world" before 365 days all - world "world" player lavaflow waterflow leavesdecay before 7 days all - world world_nether before 365 days all - world world_nether player lavaflow ghast before 7 days all - world "world" player diddiz all

    However I am unsure what to adjust, and how that will affect logging and DB size.

    Hope someone can help !
     
  8. Offline

    monir

    I wonder what this means?

    net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:129)
    05.01 14:04:14 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    05.01 14:04:14 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    05.01 14:04:14 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:265)
    05.01 14:04:14 [Server] INFO at de.diddiz.LogBlock.LBPlayerListener.onPlayerJoin(LBPlayerListener.java:95)
    05.01 14:04:14 [Server] INFO at de.diddiz.LogBlock.Consumer.queueJoin(Consumer.java:237)
    05.01 14:04:14 [Server] INFO at de.diddiz.LogBlock.Consumer$PlayerJoinRow.<init>(Consumer.java:444)
    05.01 14:04:14 [Server] INFO java.lang.NullPointerException
    05.01 14:04:14 [Server] SEVERE Could not pass event PLAYER_JOIN to LogBlock
     
  9. Offline

    ritonda66

    Ive got a problem with logging.
    Mysql works, it created the tables but it WONT log.
    Nearly every file on msql is empty or it has 16kb.
    i added ALL worlds i want to logg
     
  10. Offline

    kuschku

    It's spout
     
  11. Offline

    OmNommNomm

    I'm not getting any errors in the console, it just says 'logblock disabled'.
     
  12. Offline

    godgodgodgo

    Hey, I found out what's causing the /yes command not to work. It won't work with the latest version of WorldEdit.
     
  13. [LogBlock] Exception in commands handler:
    java.lang.IllegalArgumentException: This world ('Legacy') isn't logged
    at de.diddiz.LogBlock.QueryParams.parseArgs(QueryParams.java:420)
    at de.diddiz.LogBlock.CommandsHandler.onCommand(CommandsHandler.java:217)
    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:378)


    I get this error every time I attempt to run '/lb rollback *' I also don't get any block changes when I right-click with the wooden pickaxes. The MySQL is up and running. I'm currently running the following plugins (all up-to-date): AutoAnnouncer,Essentials,EssentialsChat,EssentialsSpawn,LWC,LogBlock,MobArena,MultiInv,Multiverse-Core,Multiverse-Portals,NoCheat,PermissionsBukkit-1.2,VoxelSniper,WorldEdit,WorldGuard
     
  14. Offline

    NemDiggers

    After awhile, LogBlock just stops writing/reading the MySQL database and fails to function. It used to work fine before, but now the only way I can get LB to work again is restart the server every so often (Which it then says [INFO] [LogBlock] Remaining queue size: 47483 and forces the dump.) After the restart, everything is fine until 30 minutes or so when it stops working again. Has this happened to anyone else before? If it helps, Dynmap isn't rendering anymore like it used to (it's EXTREMELY slow)

    I'm using OpenJDK 1.7.0 with Ubuntu Server 11.10.
     
  15. Offline

    MushyBean

    Does LogBlock grab the time from the Minecraft server or the database server for writing timestamps in logs?
    I currently get timestamps that are different to my Minecraft server time.
    http://i.imgur.com/UlKmZ.png
     
  16. Offline

    DiddiZ

    This will be fixed with guardian.
    Basically, this will delete all log after 365 days, and lavaflow, waterflow and leavesdecay already after 7 days.
    Check your world configs.
    MC server
    Writing log to db requires cpu.
    You can give LB a higher priority by increasing consumer.forceToProcess up to 1000.
    You have to add your world to loggedWorlds in config.
    I'll check that.
    Check server.log.
     
  17. Offline

    Pomme72

    Hi guys,

    I have this message when I tip any of the /lb commands :

    No database connected. Blah blah blah.

    Please, how to have a database ?!

    Thanks. :)

     
  18. Offline

    MineCleric

    how can you do anything on the logblock for admin and ops??
    I have a problem that I can not lure the doors to others who have forgotten it ....

    can you help me?
     
  19. Offline

    GameplayerHD

    Hello im getting this error, logblock stops responding after little while, restarting server helps it, but have to restart it every 3 hours ;(

    Error:

    Code:
    [LogBlock] Exception in commands handler:
    java.lang.IllegalArgumentException: Not a valid argument: 'here'
        at de.diddiz.LogBlock.QueryParams.parseArgs(QueryParams.java:400)
        at de.diddiz.LogBlock.QueryParams.<init>(QueryParams.java:49)
        at de.diddiz.LogBlock.CommandsHandler.onCommand(CommandsHandler.java:291)
        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:378)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  20. Offline

    NemDiggers

    That's what I have it at; it's been working perfectly since I installed it back in late July. It's just recent until it started doing things like this. Could've it been that I updated to 1.7.0 JDK?
     
  21. Offline

    Puremin0rez

    This probably won't help you much since I have nothing to support this but for some reason Chest Logging seems to be very spotty. It appears to only work 5-10 minutes after the server is started, but then just stop logging. I have tested this a few times and know that after the server is on for awhile it will just stop chest logging. I do not use spout.

    LogBlock still works flawlessly on everything else though, so thanks!
     
  22. Offline

    IceCraftTeam

    How do i make it so that in the config folder password is set to false? If i can't do that, how do i set up a password on phpmyadmin on a mac? I don't know how and cannot use log block without this. Please respond fast

    How do i make it so i can use log block? The tables were created and the /lb command works but when i right/left click with bedrock/wood pick it does nothing. I do not have a permissions plugin so how would i get this to work? PLEASE REPLY SOON

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

    xeNium

    @DiddiZ
    TNTEXPLOSION: true
    LEAVESDECAY: false
    MISCEXPLOSION: false
    SNOWFORM: false
    NATURALSTRUCTUREGROW: false
    KILL: false
    FIRE: true
    CHAT: false
    WATERFLOW: false
    BONEMEALSTRUCTUREGROW: false
    BLOCKPLACE: true
    ENDERDRAGON: true
    DIODEINTERACT: false
    SNOWFADE: false
    CHESTACCESS: false
    ENDERMEN: false
    SIGNTEXT: false
    LAVAFLOW: false
    CAKEEAT: false
    BLOCKBREAK: true
    SWITCHINTERACT: false
    NOTEBLOCKINTERACT: false
    GHASTFIREBALLEXPLOSION: true
    CREEPEREXPLOSION: true
    DOORINTERACT: false

    Can you teach me about this 1 by 1? Because the word does not make any sense to me "Like MiscExplosion.. I do not know that"
     
  24. Offline

    DiddiZ

    Update to dev #84+
    Try "/lb savequeue", if it doesn't help, consider installing spout, the the server jar is required.
    password: ''
    (notice the two single quotes)
    Maybe. Try if you can get a mysql server at localhost.
    Add your world to logged world.
    "/lb logging" helps to figure out the world, names are case sensitive.
    @xeNium
    Wrote you a pm
    Lure doors?
     
  25. Offline

    NemDiggers

    It's always been localhost. I host my MySQL server on the same box as the minecraft server.

    It only seems to save the queue when I stop the serve, the Queue overload only shows when I stop i, and when I start again it needs to import the dump.

    Edit: I'm going through my logs to figure out what's going on. Could my JVM settings be effecting this? I'm noticing this around the same time my mods reporting LB stopped working:

    2012-01-06 23:00:13 [SEVERE] java.io.IOException: Received string length longer than maximum allowed (36 > 32)
    2012-01-06 23:00:13 [SEVERE] at net.minecraft.server.Packet.a(Packet.java:120)
    2012-01-06 23:00:13 [SEVERE] at net.minecraft.server.Packet2Handshake.a(SourceFile:17)
    2012-01-06 23:00:13 [SEVERE] at net.minecraft.server.Packet.a(Packet.java:79)
    2012-01-06 23:00:13 [SEVERE] at net.minecraft.server.NetworkManager.h(NetworkManager.java:149)
    2012-01-06 23:00:13 [SEVERE] at net.minecraft.server.NetworkManager.c(NetworkManager.java:263)
    2012-01-06 23:00:13 [SEVERE] at net.minecraft.server.NetworkReaderThread.run(SourceFile:77)

    Other than this, LogBlock just seems to stop responding after awhile. All the commands still work, just when you try to look something up, it never returns anything. It's not spitting out any errors in to console, either.

    So many edits. Just adding info as I go, sorry. Here's my MySQL status. The avg is much lower than what it used to be. It used to be around 50 per second.
    mysql Ver 14.14 Distrib 5.1.58, for debian-linux-gnu (x86_64) using readline 6.2

    Connection id: 10196
    Current database:
    Current user: root@localhost
    SSL: Not in use
    Current pager: stdout
    Using outfile: ''
    Using delimiter: ;
    Server version: 5.1.58-1ubuntu1 (Ubuntu)
    Protocol version: 10
    Connection: Localhost via UNIX socket
    Server characterset: latin1
    Db characterset: latin1
    Client characterset: latin1
    Conn. characterset: latin1
    UNIX socket: /var/run/mysqld/mysqld.sock
    Uptime: 4 days 10 hours 14 min 12 sec

    Threads: 2 Questions: 1086812 Slow queries: 8 Opens: 510 Flush tables: 1 Open tables: 64 Queries per second avg: 2.841
     
  26. Offline

    DiddiZ

    How large is your main table?
    Maybe it's just to big to keep the indices in memory so for each inser i/o is required.
     
  27. Offline

    NemDiggers

    It's 1.4 gigs.

    This is my startup, could my JVM be doing this? I recently changed it:

    Code:
    sudo java -server -Xmx10G -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseNUMA -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=500 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:UseSSE=3 -XX:+UseLargePages -XX:+UseFastAccessorMethods -XX:+UseCompressedOops -XX:+OptimizeStringConcat -XX:+AggressiveOpts -jar minecraft_server.jar nogui
    
     
  28. Offline

    Crayder

    Does anyone have a list of plugins that are dependent on LogBlock? XrayInformer is one, for example.
     
  29. Offline

    Pomme72

     
  30. Offline

    Mercury

    I give permission to mod 'mcbans.ban.local' so he can rollback player after he uses /ban
    Problem is he can only rollback 50 blocks? What I am doing wrong?
     
  31. Offline

    DiddiZ

    Nah, MySQL server isn't affected by jvm.
    Try to increase mysql key buffer size, it's somewhere in the mysql config, but I continously forget the entry names.
    Don't think so, but if, I'd like to hear about so a could add it to supporting plugins :D
    Hm, that's not intended. Give them logblock.ignoreRestrictions permission as workaround.
     

Share This Page