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 4, 2012@jordan12341234
This may help you. http://dev.bukkit.org/server-mods/grief-prevention/pages/logblock/
-
View User Profile
-
Send Message
Posted Jun 3, 2012Can LogBlock be used to rollback stuff like sand and gravel that fell? EX : Someone builds a sand castle, and then Player 1 breaks the bottom block and places a torch. Since the sand falls on the torch, all the sand disappears. Can that be rollbacked?
-
View User Profile
-
Send Message
Posted Jun 3, 2012So, there is no possible way to convert CoreProtect data to LogBlock data?
-
View User Profile
-
Send Message
Posted Jun 3, 2012@nate302
Oh, I meant:
X: 1,000,000 Z: 1,000,000
I was asking more if 1,000,000 was considered BIGINT or MEDIUMINT. My axis is default max (256), so I think it'll be fine...
-
View User Profile
-
Send Message
Posted Jun 3, 2012@np98765
yes, however unless your map has an axis high enough to exceed mediumint, it should be fine
@abcedea
no.
-
View User Profile
-
Send Message
Posted Jun 3, 2012Oh...
Spout is required now? Ok then..
-
View User Profile
-
Send Message
Posted Jun 3, 2012@nate302
Thanks! I just have a quick question: Did MEDIUMINT mean that the x and z coords have to be between a certain number? For example, if I built at Atlantis, which is 1,000,000, 1,000,000, would I get these errors again?
Again, thanks for your help!
-
View User Profile
-
Send Message
Posted Jun 3, 2012@np98765
In php my admin there's a tab labeld "structure" when you are in the table "lb-world" etc. you can then change the type to mediumint there.
-
View User Profile
-
Send Message
Posted Jun 3, 2012@nate302
Yep, I'm using phpmyadmin. But, I was wondering what command(s) to use... I couldn't understand the pictures on the page you gave me :(
-
View User Profile
-
Send Message
Posted Jun 3, 2012@np98765
Use phpmyadmin if you have a webserver on the same machine, or the sql commands to change the structure from smallint to mediumint
-
View User Profile
-
Send Message
Posted Jun 3, 2012@nate302
Sorry... I didn't understand that MySQL page one bit.. :(
I don't understand how to change x and z to BIGINTs. Do I have to use the SQL query search function thingy? Sorry, I've just never used MySQL before...
-
View User Profile
-
Send Message
Posted Jun 3, 2012@DailyTroll
pastebin your config.yml, remove your mysql info
-
View User Profile
-
Send Message
Posted Jun 3, 2012@nate302
Yes I have the correct permissions, i have LogBlock.*
-
View User Profile
-
Send Message
Posted Jun 3, 2012If I don't change the default MySQL settings, will everything be allright? Now I can't use /lb and when I rightclock with the wooden pickaxe, nothing happens :(
-
View User Profile
-
Send Message
Posted Jun 3, 2012@treestompz
you could use the automated portion in the config, I'd set it to 90 days personally, and for every world that is logged.
@Medzsik11
is the database server local, or on a different computer?
@DailyTroll
Do you have to correct permissions setup for the tool?
-
View User Profile
-
Send Message
Posted Jun 3, 2012@nate302
How would I go about purging some of the old player data?
And just to save you time, after you answer the above, and if it doesn't work, what should I do next?
-
View User Profile
-
Send Message
Posted Jun 3, 2012Pls help,LB doesn't work for me and i have no idea why. The username,database,password are all correct and still,it doesn't connect. Any idea what could be the problem?
-
View User Profile
-
Send Message
Posted Jun 3, 2012When I use my wood pickaxe to right click a block someone placed, nothing happens. So when I /lb rollback player TekZek since 10 minutes, it says 0 blocks found. I have the MySQL linked, what am I doing wrong?
-
View User Profile
-
Send Message
Posted Jun 3, 2012@treestompz
any way you can purge some?
-
View User Profile
-
Send Message
Posted Jun 2, 2012Getting this:
2012-06-03 00:22:37 [WARNING] [LogBlock Consumer] Failed to add player pureblocks 2012-06-03 00:22:37 [WARNING] [LogBlock Consumer] Failed to add player nicholas161 2012-06-03 00:22:37 [WARNING] [LogBlock Consumer] Failed to add player philipjykim
It's been throwing that error for hundreds of players. Those playernames that it is showing are not in the table.
I do have over 65,000 players registered in the table though.
Any help greatly appreciated.