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 Feb 24, 2014Thank you so much for this awesome plugin! I love it!
-
View User Profile
-
Send Message
Posted Feb 18, 2014@CloakedAlien
Yes
-
View User Profile
-
Send Message
Posted Feb 18, 2014@icecoldpanda
yes you do need to port forward. Also i would set you sql database password as "pass" cause had some issues with the config changed the password back to pass every time i changed it.
-
View User Profile
-
Send Message
Posted Feb 17, 2014Does this support logging who interacts with doors/gates? Can't see anything about it =/
-
View User Profile
-
Send Message
Posted Feb 12, 2014I don't know if the problem is on my end or something with 1.7.2 but I got kicked from mysql database two times now in a short amount of time.
I get this message: http://pastebin.com/xC5pdWXJ
What do I need to do or stop doing to stop that error?
-
View User Profile
-
Send Message
Posted Feb 12, 2014Hello dear community,
i have a problem. I want to rollback the blocks from players automatically when the player isn´t a few days or hours not on the server. I don´t know how I can change this or can´t I do that with that plugin?
Please help me, sorry for my bad english.
-
View User Profile
-
Send Message
Posted Feb 9, 2014"Works 100% with 1.7.2"
Thank you for making this so easy to find.
-
View User Profile
-
Send Message
Posted Jan 31, 2014Hello.
I have just set up a SQL database on the same PC as the MC server. I am 100% sure that I am typing in the correct password. But I get the error code that it just fails to connect. Do I have to port forward even if it is internal hosting?
-
View User Profile
-
Send Message
Posted Jan 31, 2014Has it been touched that what if world changes were all in 1 table instead of a table for each world ? As far as I understand, it's faster cuz of single large INDEX, but then we come to indexing the world names: unless each world is assigned an integer (which is looked from separate table) instead of a string, an INDEX on the world name column likely is slower.
Having less file descriptors is also faster, which is second reason for 1 large table. That speed can be eliminated by the world name INDEX, though. Dunno, that's why we need to test.
Same way, the chest and sign tables could be combined into 1 chest table for all worlds and 1 sign table for all worlds.
-
View User Profile
-
Send Message
Posted Jan 29, 2014Keeps throwing this at me all time:
ERROR]: [Consumer] SQL exception on insertion: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '4436966' for key 'PRIMARY'
-Woops, my sql database was full. Dumped one table and reduced the held log time.
-
View User Profile
-
Send Message
Posted Jan 25, 2014Could you help me with the command to look up pvp kills?
I'm trying to figure out who killed a player and I can't figure out how to bring it up.
If I type /lb kills, it says Kill logging not enabled for world 'world' config for logging: http://pastebin.com/Tg33wEjb
-
View User Profile
-
Send Message
Posted Jan 24, 2014Can anyone help me? When I am connected to the sql database (I think I am, because it doesn't give any error when I type a command), it doesn't do anything when I type a command. I hope anyone can help me. :)
-
View User Profile
-
Send Message
Posted Jan 22, 2014@pinetrees100
Ok thanks! :D
-
View User Profile
-
Send Message
Posted Jan 21, 2014@BryanChung
I use Logblock v.1.80 on my MCPC+ server (1.6.4) without any problem
-
View User Profile
-
Send Message
Posted Jan 20, 2014Can I use LogBlock-v1.80 on 1.6.4? :)
-
View User Profile
-
Send Message
Posted Jan 20, 2014@socram8888
i mean that LogBlock can't log Block's Meta Data if Data number above 12
i misnumbered on my comment, Mod BlockID number isn't 4096, is 4059 (Gregtech, IC2 addon)
-
View User Profile
-
Send Message
Posted Jan 19, 2014@pinetrees100
It is phisically impossible for a block (even a custom one) to have an ID 4096. Block IDs are stored on a 12-bit array, which means each block must have an ID in range 0-4095. So either reconfigure the mod to use a proper ID, or double check you have misstyped the ID.
-
View User Profile
-
Send Message
Posted Jan 18, 2014I have some question.
I set boolean data true to false that safety.id.check section on config file to log my MCPC+ server
it works really well unless Block data > 12,
if Block data more than 12 it doesn't log data number, but block ID is still logged on MySQL DB
how can i fix this error?
sorry for my bad english :P
p.s the block's ID is 4096, Data is 12 to 1801
-
View User Profile
-
Send Message
Posted Jan 18, 2014Just have a quick question, my logblock was logging signs for a short period of time, now they roll back without text again. Any idea why?
-
View User Profile
-
Send Message
Posted Jan 16, 2014@MegaFlary
That's really the same question.