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 Jul 21, 2012There is a /lb tb command, it stands for /logblock toolblock, still cant find permissions to do that :/
-
View User Profile
-
Send Message
Posted Jul 21, 2012There is no /lb tb command i think
Its either /lb toolblock or /lb tp
-
View User Profile
-
Send Message
Posted Jul 21, 2012The permissions don't seem to work because my moderators cannot do /lb tb and i am using the latest version v1.54, is there a reason for this?
-
View User Profile
-
Send Message
Posted Jul 21, 2012This plugin doesn't seem to rollback enchanted items stored in chests.
This is a major annoyance for me as when I need to rollback a base, they lose all of their enchantments.
-
View User Profile
-
Send Message
Posted Jul 21, 2012Very helpful plugin.
One of the most needed plugins for any larger server! Saved my servers ass countless times :) Just saying thank you!
-nathan
-
View User Profile
-
Send Message
Posted Jul 20, 2012@Pendar2
Yes, it does rollback signs correctly, however many sign editor type plugins can interfere with this. Towny has been known to not properly fix the signs after say a creeper explosion.
-
View User Profile
-
Send Message
Posted Jul 20, 2012@IJosephI
This is something that more than likely will not be added to the plugin. As nice as it might be in theory, it wouldn't go too easy on the server :)
-
View User Profile
-
Send Message
Posted Jul 18, 2012Please add command to reload plugin without server reload.
-
View User Profile
-
Send Message
Posted Jul 18, 2012@Techtony96
As far as I'm aware chest logging should be fixed in that version. Go pester md_5 on irc. :3
@Pendar2
Ensure sign text logging is enabled in your world configuration.
@XeonG8
As stated earlier, please create a ticket for this request.
-
View User Profile
-
Send Message
Posted Jul 18, 2012@CourtArtanis
Nah i couldn't ask server host to adjust timezone, besides it wouldn't be making it easier to make quicker rollbacks.. its why having the log report showing the actual time difference from when you run the /lb area 5 etc and the time of the log incidents is so much quicker, then straight away use that reported time difference in the rollback since "time" without having to mess about working out the time difference yourself, with less mistakes and easier to work out what time it happened in your own time without having to go by server time and blargh very annoying. Just more efficient I still think there should be a command toggle that could have it report the actual logged time the normal way though.
Maybe if not that then logblock provide a timezone option where it just adjusts its current time stamping to take into account timezone difference you want it to have.
-
View User Profile
-
Send Message
Posted Jul 17, 2012If a sign gets destroyed and I roll back the area, will the sign rollback with the same text on it?
EDIT: I tested it and it doesn't.
-
View User Profile
-
Send Message
Posted Jul 16, 2012@jamietech
I am using 1.54 List of plugins:
Plugins (27): SBC, GroupManager, AutoSneak, AlphaChest, NoCheatPlus, WorldEdit, BukkitCompat, FastFood, Vault, LogBlock, CombatTag, WorldGuard, SimpleWarnings, GB.Shopper, BorderGuard, OreRatio, AutoMessage, HeroicDeath, Lottery, Permissions, creaturebox, Votifier, mcMMO, Essentials, EssentialsSpawn, EssentialsChat, Factions
-
View User Profile
-
Send Message
Posted Jul 16, 2012@Techtony96
Which version of the plugin are you running? If you're running an old version, chest logging was hopefully fixed in the newer versions of LogBlock.
@XeonG8
Sorry that you're so hot-headed but I'm going to ask you to calm down or stop requesting help from us. Furthermore, I apologise for not understanding your question but I was under the impression that you requested help for the rollback time parameters rather than the output when you search block changes. If you wish to request this change please place an issue on the tracker at https://github.com/DiddiZ/LogBlock/issues
-
View User Profile
-
Send Message
Posted Jul 16, 2012got this weird error. Read from the bottom up. Sorry.
... 19 more at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) at java.lang.reflect.Method.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source) at de.diddiz.LogBlock.listeners.ChestAccessLogging.onInventoryOpen(ChestAccessLogging.java:53) at de.diddiz.util.BukkitUtils.getInventoryHolderType(BukkitUtils.java:43) at org.bukkit.block.DoubleChest.getLocation(DoubleChest.java:29) at org.bukkit.block.DoubleChest.getWorld(DoubleChest.java:33) at org.bukkit.block.DoubleChest.getLeftSide(DoubleChest.java:21) at org.bukkit.craftbukkit.inventory.CraftInventory.getHolder(CraftInventory.java:420) at net.minecraft.server.TileEntity.getOwner(TileEntity.java:131) Caused by: java.lang.NullPointerException at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) at net.sradonia.bukkit.alphachest.commands.ChestCommands.onCommand(ChestCommands.java:26) at net.sradonia.bukkit.alphachest.commands.ChestCommands.performChestCommand(ChestCommands.java:41) at net.minecraft.server.EntityPlayer.openContainer(EntityPlayer.java:503) at org.bukkit.craftbukkit.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:482) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) org.bukkit.event.EventException 2012-07-17 00:53:36 [SEVERE] Could not pass event InventoryOpenEvent to LogBlock
-
View User Profile
-
Send Message
Posted Jul 16, 2012@Talaysen
I've found that the database on a large map (ours was 6gbs) can get a bit too heavy, and by having LogBlock clear out the database of old entries past 90 days works very well. You'll want to set that up in the config so that it does it automatically, every day. Another thing that works well, if the SQL server is on the same box, you may want to increase the queue size. This will allow more to go to the SQL server instead of sitting in the queue.
-
View User Profile
-
Send Message
Posted Jul 16, 2012@Fentaur47
you need to install LogBlockQuestioner.jar The current jar can be found here:
https://github.com/downloads/DiddiZ/LogBlockQuestioner/LogBlockQuestioner%20v0.03.zip
-
View User Profile
-
Send Message
Posted Jul 16, 2012@XeonG8
With that kind of attitude, you can ask elsewhere :)
-
View User Profile
-
Send Message
Posted Jul 15, 2012I am very curious. How to get playername instead of playerid when exporting to PDF?
in the lb-chat, i cant seem to get playername type to work instead of playerid.
What am i doing wrong?
-
View User Profile
-
Send Message
Posted Jul 15, 2012@XeonG8
Rofl, a little bit harsh.
Just out of curiosity; are you asking if the logs can report to you how long ago the change happened rather than the actual date they happened? Logs for yesterday would be 1d xxxxx instead of 14/07/2012 - Is that what you meant?
Edit: Nevermind, just re-read and re-read your comments again xD Jamietech may have been rushing with his comments to keep things moving. It happens. I guess the 1d:h:m:s would be alot easier to work with when you have to offset server timezone differences yourself before you rollback. You could ask your host and see if they will offset the server timezone for you?
-
View User Profile
-
Send Message
Posted Jul 14, 2012@jamietech
Your purple name tag made me think you were a developer.. clearly you cannot grasp the simple understanding of what I was talking about. Mind is blown, maybe go check another logblock plugin that does report the logged time in this manner.. I can't be bothered explaining it anymore since its pretty simple to understand.