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 Mar 23, 2013Can you please make an extra permission for the parameter "sel" - so nobody can rollback the whole world, just a selection - Mods have rollback powers, but they cant use /lb rb since 99d (or something), only /lb rb sel since 99d
-
View User Profile
-
Send Message
Posted Mar 23, 2013any news about 1.5 update ?
-
View User Profile
-
Send Message
Posted Mar 22, 2013Hello!
Great plugin, I have a doubt:
I just have 1gb of space un MySQL, is there any way to keep the database for example just 15 days before, and the other to remove? When a day finishes, the plugin to remove the day before so i have data of 15 days.
Thanks!
-
View User Profile
-
Send Message
Posted Mar 19, 2013@manipulatedxs
No its not, headdesk
-
View User Profile
-
Send Message
Posted Mar 19, 2013Cannot connect using cPanel database. Added to remote access, everything, must be because of 1.5
-
View User Profile
-
Send Message
Posted Mar 16, 2013Update for 1.5 please.
-
View User Profile
-
Send Message
Posted Mar 16, 2013@fungreenfox
I have seen this same error for openinventory AND closeinventory events. Something to do with hoppers. Please look into it.
-
View User Profile
-
Send Message
Posted Mar 16, 2013@SomewhatMuffin
Yeah. It pops up in the help menu for essentials but then does nothing when i try a command
-
View User Profile
-
Send Message
Posted Mar 16, 2013@thejjman713
Yea Im having the same problem, when you type a command, does it just do nothing for u? Im not sure why though. Maybe cause the 1.70 version is not compatible with 1.5 or somtin?
-
View User Profile
-
Send Message
Posted Mar 16, 2013Is anyone else having the problem that none of the commands are working? I updated to version 1.70 and I see it in the help menu but none of the commands work. One of my admins decided to tell everyone that LogBlock didn't work and everyone went on a greifing spree. Tons of people rage quit my server because of this. Is it because of the Minecraft 1.5 update? If so, please fix it as soon as possible. Thanks!
-
View User Profile
-
Send Message
Posted Mar 16, 2013hello. Will there be a version compatible with craftbukkit 1.5 out soon? cause I have the version for 1.4.7, but when i type the commands nothing happens. Do I need to wait for a later version, or how do I fix this problem? thx
-
View User Profile
-
Send Message
Posted Mar 16, 2013@md_5
Yes, thats what i said: 2nd edit: above is on a clean first run. After adjusting the config, LB is responding with no error in console. Sorry for not being more clear about this.
but now i get this after a days use, while placing a hopper next to a chest and trying to open the chest or so.
16:30:35 [SEVERE] Could not pass event InventoryOpenEvent to LogBlock v1.70 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_5_R1.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:501) at net.minecraft.server.v1_5_R1.EntityPlayer.openContainer(EntityPlayer.java:507) at net.minecraft.server.v1_5_R1.BlockChest.interact(SourceFile:238) at net.minecraft.server.v1_5_R1.PlayerInteractManager.interact(PlayerInteractManager.java:385) at net.minecraft.server.v1_5_R1.PlayerConnection.a(PlayerConnection.java:635) at net.minecraft.server.v1_5_R1.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_5_R1.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_5_R1.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R1.MinecraftServer.r(MinecraftServer.java:580) at net.minecraft.server.v1_5_R1.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R1.MinecraftServer.q(MinecraftServer.java:476) at net.minecraft.server.v1_5_R1.MinecraftServer.run(MinecraftServer.java:409) at net.minecraft.server.v1_5_R1.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at org.bukkit.block.DoubleChest.getWorld(DoubleChest.java:33) at org.bukkit.block.DoubleChest.getLocation(DoubleChest.java:29) at de.diddiz.util.BukkitUtils.getInventoryHolderType(BukkitUtils.java:158) at de.diddiz.LogBlock.listeners.ChestAccessLogging.onInventoryOpen(ChestAccessLogging.java:53) at sun.reflect.GeneratedMethodAccessor546.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 19 more
-
View User Profile
-
Send Message
Posted Mar 16, 2013@fungreenfox
It works completely fine for me, and everyone else. Your config is wrong.
-
View User Profile
-
Send Message
Posted Mar 15, 2013@Unknown_Mage
Trying now, development build from this hour, and bukkit 1.5.0: 02:18:54 [INFO] [LogBlockQuestioner] Enabling LogBlockQuestioner v0.02 02:18:54 [INFO] LogBlockQuestioner v0.02 enabled 02:18:54 [INFO] [LogBlock] Enabling LogBlock v1.70 02:18:54 [INFO] Accepted EditSessionFactory of type de.diddiz.worldedit.LogBlockEditSessionFactory from de.diddiz.worldedit 02:18:54 [SEVERE] Error occurred while enabling LogBlock v1.70 (Is it up to date?) java.lang.NullPointerException at de.diddiz.LogBlock.config.Config.isLogging(Config.java:252) at de.diddiz.LogBlock.LogBlock.registerEvents(LogBlock.java:131) at de.diddiz.LogBlock.LogBlock.onEnable(LogBlock.java:99) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321) at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300) at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
2nd edit: above is on a clean first run. After adjusting the config, LB is responding with no error in colsole.
-
View User Profile
-
Send Message
Posted Mar 15, 2013@Unknown_Mage
Logblock is the only plugin keeping me from going from 1.4.7 to 1.5.0, since LogBlock-1.70 for CB 1.4.7-R0.1 Jan 20, 2013 does not start at all at 150.
-
View User Profile
-
Send Message
Posted Mar 15, 2013Can anyone confirm that the logblock developmental build works with 1.5?
If not, I will be checking within the next couple of days when I get some free time.
-
View User Profile
-
Send Message
Posted Mar 15, 2013@mrmetile
What version is your server when using 1.70 and did you delete the config to let it make a new one? There is a version number in the bottom of the config, what does this say?
-
View User Profile
-
Send Message
Posted Mar 15, 2013I run a server and when I install 1.70 when I try to do a command nothing happens. I checked the console and it said: 15.03 23:52:23 [Server] SEVERE Error occurred while enabling LogBlock v1.70 (Is it up to date?) 15.03 23:52:23 [Server] INFO Enabling LogBlock v1.70 Any way to fix this? It works fine with 1.61 but not 1.70
-
View User Profile
-
Send Message
Posted Mar 15, 2013looking forward to a 1.5.0 compatible version.
-
View User Profile
-
Send Message
Posted Mar 15, 2013@mooseintree
Your database is to small in integer. Lookup playerid, x, y and z row, change to "INT" instead of the "smallINT" or or mediumINT ;whatever it is set to currently.