LogBlock
Works 100% with 1.7 / 1.8
The best block logging and rollback solution for the savvy server administrator.
LogBlock is the best block logging plugin for Bukkit server. Not only is it awesomely powerful, it’s blazing fast! Everything is logged into a MySQL database, allowing developers to hook in and produce things such as player stats and even administrative panels. Every loggable action can be logged with LogBlock: WorldEdit, leave decay, fire, sign changes, explosions, chest changes, player and animal deaths, chat, commands and more!
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
LogBlock will very rarely break between Minecraft / Bukkit updates, however if you find it does, please be sure to try a development build from above, as we generally test new releases there until deemed stable.
What is LogBlock?
LogBlock is a tool which allows you to keep track of almost everything on your server, while also giving you the ability to rollback (revert) or redo changes made by users and natural occurrences such as liquid flow or leaf decay. Additionally, LogBlock is able to log and rollback chest contents, sign text and more! LogBlock was originally created by bootswithdefer for HMod, ported to Bukkit by DiddiZ and is now actively maintained by md_5, ammar2 and the community of developers on Bukkit. We accept pull requests on GitHub frequently which means that community developers can add features they wish to see quicker than LogBlock developers are able to from tickets. All database actions are run not only in their own threads, but are queued into a consumer to minimize lag on the main thread. This is great for larger servers! All optional features (not dependencies below) are enabled and disabled from within the config file allowing complete control over what is logged thus ensuring database size is kept to a minimum.
Notices
Most virtual chest plugins are not compatible with LogBlock. Because they do not set the player who is opening the “chest”, LogBlock can’t do what it’s meant to be able to do, thus, making errors in your console. Please report these issues to the fake-chest plugin developer, NOT LogBlock developers.
Issues are read more frequently on the GitHub Issues page as compared to the comments below. When updating to LB1.57, if you already have a large database and have changed your columns to MEDIUMINT, INT or LARGEINT, you do not need the updater to fix this for you automatically. To stop this behaviour, simply change “version” in the configuration to ‘1.57’.
If you are experiencing an error such as this please read the FAQ for answers.
If you're receiving errors regarding players from the consumer such as "[Consumer] Failed to add player <playername>" then change all `playerid` columns to MEDIUMINT or INT in each table that contains them. This may take a long time if you have a lot of rows.
Optional Dependencies
- WorldEdit (Recommended)
- Permissions plugin
- LogBlock Questioner
Need help?
Found a bug or an issue? Please report it (and attach code if you know how to squash it) on our ticket manager.
Just need help in general or have an urgent, more private bug? Join us on IRC at irc.esper.net #LogBlock and ping a +o or +v for faster help. Webchat is available here if you don't have a client, or prefer to use it.
As always, check if your question is on the FAQ before asking!
Installation
More Information
- FAQ (read me first!)
- Command reference
- Configuration
- Helpful Commands
- MySQL Connection Problems
- MySQL Schema
- SQL Queries
- Parameters
Are you a Developer?
If you wish to contribute to the LogBlock project, head on over to the GitHub page, fork the project and submit your pull request(s).
If you wish to develop a plugin that interacts with LogBlock in some way, read up on the API here. Support for API and more can be found in the IRC channel, which is listed above.
Developer builds can be found here. (These builds have not been approved by the BukkitDev staff. Use them at your own risk.)
Still need help? Join us on IRC at irc.esper.net #LogBlock and ping a +o or +v for faster help.
Please do not post comments requesting support. Report bugs here or, alternatively, talk to a real person. Commenting below is a surefire way to not receive help.
-
View User Profile
-
Send Message
Posted Jun 2, 2012@np98765
It's a known bug. go into the database that logblock uses, in the "lb-worldname" tables, change the structure of x and z from "SMALLINT" to "MEDIUMINT".
http://dev.mysql.com/doc/refman/5.0/en/out-of-range-and-overflow.html
on the next update the databases will be updated for mediumint. I'm however not developing the plugin, just making sure that good, stable community builds get off the github rack and out to the public. DiddiZ is monitoring the Github repo. Any pull requests are appreciated :)
-
View User Profile
-
Send Message
Posted Jun 2, 2012Please help!
[LogBlock Consumer] SQL exception on INSERT INTO `lb-world` (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1338660690), 1, 10, 0, 2, '6579', 58, '-564285');: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'z' at row 1 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3591) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:779) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:622) at de.diddiz.LogBlock.Consumer.run(Consumer.java:292) at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) at java.lang.Thread.run(Thread.java:680)
is spamming the console every 5 seconds! Please, please help!
-
View User Profile
-
Send Message
Posted Jun 2, 2012@alexander_gq
The best way to look for xray, is vanish while they are online and watch them mine. The best plugin for that is Vanish No Packet. The other thing you can do is install an xray mod yourself, and after they've done their mining, go in with xray and see what they "missed". If there are no ores around and plenty of stone, and they went point to point.. they're mining with xray. LogBlock will confirm it was them :p
-
View User Profile
-
Send Message
Posted Jun 1, 2012Is there a way you could make a render from the logged blocks, to see clearly the pattern of someone's mining and make a judgement call about possible xraying?
-
View User Profile
-
Send Message
Posted Jun 1, 2012@alexg2k1
set in the config: permissionDefault: 'False' for the toolblock and the tools sections. This will diasble the tools completely unless they have the permission nodes:
https://github.com/DiddiZ/LogBlock/wiki/Permissions
-
View User Profile
-
Send Message
Posted Jun 1, 2012Is there any possible way to stop my users from doing any /lb commands and not able to use the logblock tools? EDIT: I found it out, you just need to change "PermissionDefault" or something to false on both the tools EDIT 2: I just saw nate replied when I edited my post haha, thanks though =D
-
View User Profile
-
Send Message
Posted Jun 1, 2012Nice to see a update for this.
It worked smooth already but just good to know it's still active :)
Thanks!
-
View User Profile
-
Send Message
Posted Jun 1, 2012Official LogBlock 1.52 Release - Waiting For Approval!
http://dev.bukkit.org/server-mods/logblock/files/2-log-block-v1-52/
-
View User Profile
-
Send Message
Posted May 31, 2012EDIT:
Weird...in some places logs do pop up when I punch the ground, and in some places it doesn't.
-
View User Profile
-
Send Message
Posted May 31, 2012On latest version of LB...its running too, commands work, but when I punch the ground to look up block changes nothing shows q.q
Anyone know what is up?
-
View User Profile
-
Send Message
Posted May 31, 2012@StuckingFoned
https://github.com/DiddiZ/LogBlock
https://github.com/DiddiZ/LogBlockQuestioner
-
View User Profile
-
Send Message
Posted May 31, 2012Any chance to get the source to this?
It doesn't rollback block 43 and doesn't log or rb paintings, plus more which would be easy to add.
-
View User Profile
-
Send Message
Posted May 31, 2012@MrQuickLine
http://dev.bukkit.org/server-mods/logblock/?comment=427
you can also use something like phpmyadmin, here's some more info on the error:
http://dev.mysql.com/doc/refman/5.5/en/out-of-range-and-overflow.html
-
View User Profile
-
Send Message
Posted May 31, 2012Having some trouble - my console is being spammed with this message:
-
View User Profile
-
Send Message
Posted May 31, 2012@np98765
your best bet is to start over. Before you do make sure no ones been griefing :)
-
View User Profile
-
Send Message
Posted May 31, 2012@alexander_gq
Their community would be more suited to answer your question :) Sounds like a bad install. Look for help here: http://forum.wampserver.com/list.php?1
-
View User Profile
-
Send Message
Posted May 31, 2012Hello. I've tried to install Wamp as per the tutorials. At first I got "msvcr100.dll" missing. I then obtained the dll and put it in both system and system32. Now I get "The application was unable to start correctly (0xc000007b)". The program does still start, but the icon never turns green in online mode.
-
View User Profile
-
Send Message
Posted May 31, 2012@yaitsbilly
@np98765
I did not update it. These builds are all from DiddiZ. I'm just linking so that people know where to find them.
-
View User Profile
-
Send Message
Posted May 30, 2012Hey there,
First, thank you @nate302 for updating. Second, I'm reverting back to LogBlock from Guardian... Does anyone have a data converter?? I used Guardian for over a month, and I can't take it anymore... All the console spam and slow load times...
I removed LogBlock (which is a mistake, looking in hindsight), and have a month and a half or so of data I need to transfer to LB. :(
Please, please, please help!
-
View User Profile
-
Send Message
Posted May 30, 2012@nate302
Are planning taking it over, or just updating it?
Cause Guardian is looking dead, and this is a core plugin.