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 Aug 24, 2012Animinal killing support please! Swatchdog has it..!
-
View User Profile
-
Send Message
Posted Aug 23, 2012@yukisho
what you need to do is give the logblock.* permssion to the user, and then negate what you don't want them to have :P
Example:
- -logblock.rollback
- -logblock.ignoreRestrictions
- logblock.*
-
View User Profile
-
Send Message
Posted Aug 23, 2012@jamietech
Nice :D Hope the worldedit logging comes soon.
-
View User Profile
-
Send Message
Posted Aug 23, 2012Hello, what is with the webstats? Work still?
-
View User Profile
-
Send Message
Posted Aug 22, 2012Regarding my earlier posting:
I was able to hook up with LogBlock API with my plugin and register my "block rotation" action. I used lbConsumer.queueBlockReplace(playerName, stateBefore, typeAfter, dataAfter) method. It works great - but for each block rotation, it registers two actions:
Any chance to get rid of the first one, "destroying" a block? We would be happy to settle with "an unspecified action", since rotating a block (= modifying its data value directly) surely is that ;)
-
View User Profile
-
Send Message
Posted Aug 22, 2012@jamietech
It's nothing wrong with my permissions plugin. I have tried 3 different permissions plugins with the same result.
-
View User Profile
-
Send Message
Posted Aug 22, 2012Hi,
Im having an issue where logblock isnt logging my chest access, or creeper explosions as players.
Im using MySQL, everything else is logging correctly.
logChestAccess: true logCreeperExplosionsAsPlayerWhoTriggeredThese: true
If i look at a block destroyed by a creeper i triggered, all i see is
08-23 14:14:43 Creeper destroyed grass
If i remove some dirt from a chest, and re-add it
/lb lookup chestaccess time 1hr
Chest accesses in the last 60minutes in TekON3: No results found.
I can confirm the queue size is sitting at 10 ish with 10 players online.
But the results should be in the database within seconds.
Any help id appeciate it
-
View User Profile
-
Send Message
Posted Aug 22, 2012After a server downtime, when It came back up, the log block tool (bedrock) doesn't work, just drops it like a block, database is the same, no errors in logs, worlds are indicated in config. and tryied /lb tool on/off.
I just can't find a solution to this problem.
-
View User Profile
-
Send Message
Posted Aug 22, 2012@yukisho
I have no idea what is wrong with your permissions. If you have given the correct nodes, the issue no longer lies with LogBlock, but rather with your permissions plugin.
@Alslinet
Is there any message given to you?
@xeNiumw0w
It never went!~
@cosmoscraft
I don't believe that is possible, set it to something that your admins don't use often (ex: wood hoe)
-
View User Profile
-
Send Message
Posted Aug 22, 2012How do you make logblock tool not default on? My admins are getting tired to /lb tool off
-
View User Profile
-
Send Message
Posted Aug 22, 2012Logblock is back! I am glad know this.
-
View User Profile
-
Send Message
Posted Aug 22, 2012I am also having issues with the /lb tool command not displaying anything. But in additon no other lb commands seem to give any result in console or chat windows ingame.
lookup and rollback is also not working in my case.
-
View User Profile
-
Send Message
Posted Aug 22, 2012I have read through these comments and you seem to be skating past the issue with not one having the permission to use /lb tool even though we have added the permissions you say to add. Would you mind giving a better explanation as to what we are missing instead of "Check out the 'Permissions' page on the wiki." This gives us no help at all except to look at the same thing we have looked at over and over again.
-
View User Profile
-
Send Message
Posted Aug 21, 2012@HeavenMc
This is on the to-do list.
@tiwar
Read the wiki information on the queue and see if that helps solve your problem. If not, try IRC.
@leponder
What?
@leponder
Ensure you're giving the permission.
@Etsija
Use the LogBlock API.
-
View User Profile
-
Send Message
Posted Aug 21, 2012Hi you all, I have written a plugin which turns around and flips those annoying blocks (logs, stairs etc.) by touching them with a specific tool. The plugin works by modifying the block data directly. LogBlock cannot log these events since they are not of block break/destroy type. Is there anything I could do to hook into LogBlock and make it register my "block turning" actions? I would settle with them being registered as "block breaks", if no custom event logging is possible in LogBlock.
-
View User Profile
-
Send Message
Posted Aug 21, 2012i gave my mods the 2 perm nodes so they can look up and report a grief but they still cant use /lb toolblock, and i gave them the toolblock, and its not letting them look up any block logs
-
View User Profile
-
Send Message
Posted Aug 21, 2012You guys wouldn't happen to have a copy of LogBlock v1.26 would you? I host a 1.7.3 BETA server and can't seem to find that version anywhere. D:
If you had a copy and could send the link to the download through PM, that would be great!
-EDIT-
Nevermind. My friend has had a copy of the 1.7.3 version for quite some time and decided to give it to me. :)
Thanks for such an awesome plugin! It helps a lot!
-
View User Profile
-
Send Message
Posted Aug 21, 2012Did that "could not place block event" conflict with mcJobs ever get worked out?
-
View User Profile
-
Send Message
Posted Aug 21, 2012you can still use rollback and other commands with logblock.* it is only one permission that is not working. This could be a number of things one of which could be the changing of what the permission is and not updating the page to tell us. All other commands work but only way to get the tools to work, at the moment for me, is to have true everyone has permission to do so. Players being able to look up who built what is not a bad thing either because if they do not have the other logblock commands they can not do anything with it without the other permissions.
-
View User Profile
-
Send Message
Posted Aug 20, 2012@Ettrayu
logblock.* isn't even giving my staff perms...