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 Apr 6, 2013I am using the newest version of LogBlock and of WorldEdit and of CraftBukkit.
-
View User Profile
-
Send Message
Posted Apr 6, 2013@Nickchens
I have seen this error before, make sure you have WorldEdit updated. This could also be caused by an outdated CraftBook.
-
View User Profile
-
Send Message
Posted Apr 6, 2013Error:
12:23:07 [INFO] [LogBlock] Loading LogBlock v1.70
12:23:07 [SEVERE] [LogBlock] Error while loading: String index out of range: 73
And then:
12:23:19 [INFO] [LogBlock] Enabling LogBlock v1.70
12:23:19 [INFO] [LogBlock] Disabling LogBlock v1.70
-
View User Profile
-
Send Message
Posted Apr 6, 2013I have the same problem as SomeWhatMuffin.
-
View User Profile
-
Send Message
Posted Apr 6, 2013@winduprabbit123 Go to plugins>LogBlock>worldname.yml and you can change ALL logged actions in those files.
@SomewhatMuffin Sounds like it is not loaded check your console on startup to make sure LogBlock does not throw any errors, if it does, post them.
@sandtcraft Make sure it's actually enabled, it's not enabled by default.
@Squirzy I'm pretty sure it's not integrated, use https://github.com/DiddiZ/LogBlockQuestioner/downloads, grab the v.0.03, works just fine.
@cuddyier All you need to do is increase the size, range of the column, In console, it will give you an error with a number that its capping it. All you need to do is increase that row and column past the point it's capping.
@Arton123 If by that you mean ones that integrate new block, yes I does. You can manually add any block ID's to be logged in the config.yml
@BlazeMc Is it just you who gets the issue, or more than just you? If it's just you then you have probably run a command by accident which only shows logs on a specific date/time preference. Check the commands section as it will tell you how to fix this in that case. If it's not just you, check your console for errors, if there are any errors thrown by LogBlock, post them.
-
View User Profile
-
Send Message
Posted Apr 5, 2013I'm getting a very common error where bedrock or wooden pickaxe doesn't show logs. I am using the recent version or CB and log block. Some help or assistance would be greatly appreciated.
-
View User Profile
-
Send Message
Posted Apr 5, 2013Does this work with mods?
-
View User Profile
-
Send Message
Posted Apr 3, 2013@Squirzy
If you go to files and scroll down far enough there should be logblock.zip, download that and extract it you'll get the questioner. I'm not sure if its under files anymore
-
View User Profile
-
Send Message
Posted Apr 2, 2013I'm getting an error just after importing my log lock database recently saying 'out of range value for column 'playerid' at row 1. I have changed the column to 'int' from 'medium int' but that did not fix the issue. Anyone know a fix?
-
View User Profile
-
Send Message
Posted Mar 31, 2013Is LogBlock Questioner integrated with LogBlock now? I am unsure, if not - is there a working build out?
-
View User Profile
-
Send Message
Posted Mar 31, 2013My AutoClearlog is not working i am using 1.5.1 bukkit, other stuff are working great. I enabled it and added this line - world "world" before 30 days all
-
View User Profile
-
Send Message
Posted Mar 30, 2013@Holzmodem
"Why MySQL? Is there a version whit the normal .txt log data?"
I would hope there would never be a version with .txt logging since it is extremely slow and a bad practice. If you have your own server on a vps or dedicated server then you can install a MySQL server for free. If not you can get a free web host and just use there MySQL.
-
View User Profile
-
Send Message
Posted Mar 29, 2013Hi, I've hit the 65535 player limit in the old schema, I ran the sql commands in the FAQ changing the <world> for each world that we have however it doesnt appire to have worked.
We created the database on logblock version 1.51
We are currently running CB 1.5.1 build 2646 and Logblock build 198
Is there anything else that we should be changing.
-
View User Profile
-
Send Message
Posted Mar 27, 2013hey, Im am currently running a craftbukkit 1.5.1 server and I have the latest version of logblock, But when I type any LogBlock commands, nothing happens... What do I do?
-
View User Profile
-
Send Message
Posted Mar 25, 2013How do you make it so you can log chest to see if people steal?
-
View User Profile
-
Send Message
Posted Mar 25, 2013this is really helpful thx
-
View User Profile
-
Send Message
Posted Mar 25, 2013I accidently rolled back the world (i put sel in i don't know why it didn't work) how do i rollback it to how it was be4 i rolledback the world? (cant do /lb redo last)
-
View User Profile
-
Send Message
Posted Mar 24, 2013@Holzmodem
Because, MySQL is much better, Though flatfile is very much more usable it's not really plausible to use for this type of plugin, I'd recommend looking into CoreProtect or Prism if flatfile is necessary, (Prism has SQLite support, which is like .txt (FlatFile) logging, only better.) and CoreProtect has plain text logging, However I'd recommend Prism over CoreProtect due to it's better features.
Althought if you can use an SQL database, LogBlock is THE way to go, get it working on my test 1.5 server (using th elatest dev build) and it's the fastest rollbacks I've ever seen.
-
View User Profile
-
Send Message
Posted Mar 24, 2013Why MySQL?
Is there a version whit the normal .txt log data?
-
View User Profile
-
Send Message
Posted Mar 23, 2013@emfjop
Hey, not sure if there is an automatic way of doing it, but you can always just do /lb writelogfile since 1 day to get a log for one day, and delete them as needed.