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 18, 2013I've looked around if anyone knows what happens when a player did "An unspecified action". I've found a post where you responded Md_5 but it was rather short. I recently had a guy who seemed to use a brush of some sort to try and grief my creatief world on my server. The only thing I found was "An unspecified action". WorldEdit is logged and only for OP´s wich he wasen´t so I doubt that was the cause. What mod could possible do that?, as I have no other plugin that allows ppl to change blocks or whatsoever.
-
View User Profile
-
Send Message
Posted Jun 18, 2013umm... what the heack is a MySQL
-
View User Profile
-
Send Message
Posted Jun 18, 2013http://pastebin.com/iYAV8Ad2
eh? this seems to be happening on a few of my servers with random players, thoughts?
edit: it repeats every minute.
-
View User Profile
-
Send Message
Posted Jun 17, 2013@Machinemania3
Multiverse works fine. But you have to use the jenkins versions.
-
View User Profile
-
Send Message
Posted Jun 17, 2013@md_5
I think he means sound effects for the player upon rollback and particle effects for the blocks being rolled back.
-
View User Profile
-
Send Message
Posted Jun 16, 2013Yo, md_5, I get an error on chest lookup on mcpc+ server version "mcpc-plus-1.5.2-R1.1-forge736-B549"
the error is:
13:18:04 [SEVERE] Exception in thread "pool-1-thread-6"
13:18:04 [SEVERE] org.apache.commons.lang.UnhandledException: Plugin LogBlock v1
.70 generated an exception while executing task 9
at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftAsyncTask.run(CraftAsyn
cTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at de.diddiz.LogBlock.config.Config.getWorldConfig(Config.java:244)
at de.diddiz.LogBlock.QueryParams.getTable(QueryParams.java:153)
at de.diddiz.LogBlock.QueryParams.getQuery(QueryParams.java:138)
at de.diddiz.LogBlock.CommandsHandler$CommandLookup.run(CommandsHandler.
java:439)
at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java
:58)
at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftAsyncTask.run(CraftAsyn
cTask.java:53)
... 3 more
Only happens with trying to check chest access, which is on for this world.
I won't pretend to know how this works from a coding aspect, so if this should be obvious to me than I am sorry for missing it.
I should note that chest access does log to the SQL Database.
-
View User Profile
-
Send Message
Posted Jun 16, 2013@xskillmc
How do we log sound and particle effects....
@waremanu
It works fine, 'your configuration is wrong. Start by posting the error so we can help.
-
View User Profile
-
Send Message
Posted Jun 16, 2013Hello. i have a request please update to 1.5.2 Beta and add item frames to logging :P and few improvents , sound and parcticle effects :P i can help PM please.
:)
-
View User Profile
-
Send Message
Posted Jun 14, 2013Please update and fix the errors. My console getting spammed down by errors, but still LogBlock works fine. But you need to fix the errors.. that would be awesome
-
View User Profile
-
Send Message
Posted Jun 14, 2013Multiverse is pretty much out of date and really doesn't work with logblock. I use MultiWorld, It works with logblock just fine
-
View User Profile
-
Send Message
Posted Jun 14, 2013@Bulletsclown
Check the names for the worlds you added. If the folder for nether says DIM-1 for instance, then the "real" world-name could be nether_1 or just DIM-1. Why and how they get named is something I'll never really going to figure out since Multiverse names dem one way and dynmap another.
It was a lot easier when it was just named world, world_nether and world_the_end.
-
View User Profile
-
Send Message
Posted Jun 13, 2013Question, im using multiverse.. and log block doesn't want to work with the new worlds.. i can use all commands but the /lb tools doesnt work.. when i hit something in the world with my wooden pickaxe or bedrock it doesn't say anything. in my main world it still works.
i looked in the config and added the world manually but still no success
i use version 1.70 Log block and 1.5.2-R0.2 craftbukkit
thanks in advance
-
View User Profile
-
Send Message
Posted Jun 12, 2013@MissEnzeru
You need to know your MySQL server address, your username and your password. That's it. LogBlock will take care of setting everything up after you edit its config file to point to your MySQL server. From there, read the help above on how to use the tools to get the info in-game about every block placement.
-
View User Profile
-
Send Message
Posted Jun 11, 2013Will there be a update to this plugin eventually?
-
View User Profile
-
Send Message
Posted Jun 6, 2013@MissEnzeru
You do not need to know much about using MySQL. They way you lookup griefs is in-game through tools, such as the default bedrock and wooden pickaxe. When you right click with these items, it pulls up a list of the most recent activity done at the block you clicked on. You do not need to pull up MySQL to do this, you just need the permission to spawn the tool and to use the tool.
What you DO need to know about MySQL, is how to connect to it. If you have a Host that you pay for, they generally can set up a MySQL server for you and can give you the details needed to connect to the MySQL server. Things typically needed include:
IP
Database Name
Port
Username
Password
The format varies from plugin to plugin, but it is usually self-explanatory on how to edit it and such. In order to add this information to connect to the MySQL server, look inside the configuration of the plugin. It should have a section for it.
-
View User Profile
-
Send Message
Posted Jun 6, 2013Hello i was looking for the logblock 1.22 version for 1.7.3 server and i can't find it. can anyone helps?
-
View User Profile
-
Send Message
Posted Jun 5, 2013I don't know anything about MySQL and it's really confusing. Does anyone know of a guide that will help me learn how to use it? Do we even need to bother with it to use logblock to see who griefed and roll it back?
-
View User Profile
-
Send Message
Posted Jun 3, 2013Can you add a way to log the items from diffrent mods please?
-
View User Profile
-
Send Message
Posted Jun 2, 2013I post a ticket with a server error can you guys have a look at it please it crush the server
-
View User Profile
-
Send Message
Posted Jun 2, 2013@TargetKiller07
Logblock doesn't discriminate on vanilla block types... Be more specific.