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 May 14, 2012Error
15.05 07:25:24 [Server] SEVERE at java.lang.Thread.run(Unknown Source) 15.05 07:25:24 [Server] SEVERE at me.blackburn.STAB.DBManagement.run(DBManagement.java:95) 15.05 07:25:24 [Server] SEVERE at me.blackburn.STAB.DBManagement.execOnlineQuery(DBManagement.java:60) 15.05 07:25:24 [Server] SEVERE at java.sql.DriverManager.getConnection(Unknown Source) 15.05 07:25:24 [Server] SEVERE at java.sql.DriverManager.getConnection(Unknown Source) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) 15.05 07:25:24 [Server] SEVERE at java.lang.reflect.Constructor.newInstance(Unknown Source) 15.05 07:25:24 [Server] SEVERE at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 15.05 07:25:24 [Server] SEVERE at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 15.05 07:25:24 [Server] SEVERE at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4046) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.Util.getInstance(Util.java:382) 15.05 07:25:24 [Server] SEVERE at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) 15.05 07:25:24 [Server] SEVERE at java.lang.reflect.Constructor.newInstance(Unknown Source) 15.05 07:25:24 [Server] SEVERE at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 15.05 07:25:24 [Server] SEVERE at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 15.05 07:25:24 [Server] SEVERE at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 15.05 07:25:24 [Server] SEVERE com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: User teamm4_stabuser already has more than 'max_user_connections' active connections
http://pastebin.com/XspKhBNb
-
View User Profile
-
Send Message
Posted May 13, 2012Getting an error when trying to start up the server, and LogBlock won't run.
2012-05-14 07:33:01 [INFO] [LogBlock] Loading LogBlock v1.52 2012-05-14 07:33:01 [SEVERE] Could not save config to plugins/LogBlock/config.yml java.io.FileNotFoundException: plugins/LogBlock/config.yml (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileWriter.<init>(Unknown Source) at org.bukkit.configuration.file.FileConfiguration.save(FileConfiguration.java:56) at org.bukkit.plugin.java.JavaPlugin.saveConfig(JavaPlugin.java:129) at de.diddiz.LogBlock.config.Config.load(Config.java:128) at de.diddiz.LogBlock.LogBlock.onLoad(LogBlock.java:91) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:218) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:189) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 2012-05-14 07:33:01 [SEVERE] [LogBlock] [LogBlock] Error while loading: plugins/LogBlock/onetwoworld.yml (Permission denied)
-
View User Profile
-
Send Message
Posted May 13, 2012@firefistmar15
yes, download the dev version from the jenkins link above, and questioner from github:
https://github.com/downloads/DiddiZ/LogBlockQuestioner/LogBlockQuestioner%20v0.03.zip
-
View User Profile
-
Send Message
Posted May 13, 2012can you use this plugin with the current minecraft 1.2.5?
-
View User Profile
-
Send Message
Posted May 13, 2012@yuihjk98
sounds like a connection problem to your database server.
-
View User Profile
-
Send Message
Posted May 12, 2012Hi! I have a huge problem. Whenever my data needs to get saved or revert or anything, I get "Unable to save queue"! Tons of edits made to the world don't get reverted back! What do I do?
-
View User Profile
-
Send Message
Posted May 9, 2012@cyclo666:
good to know.
@KJanar:
:) When it rains, it pours!
-
View User Profile
-
Send Message
Posted May 9, 2012@nate302
Permissions isn't the problem. I actually want normal members to be able to lookup with right click which works just fine. it's left click that's the problem. It's set to NONE in the config but it just spams you with 'unknown command type "help" for help'. I've been using logblock for months and never seen this before. I'm on 1.52.
I've always used /lb tool along with superpickaxe in world edit, but now that isn't possible. I have to lookup with a wooden pick and then use a different pick to break.
Edit: Even if I completely negate the whole logblock node from the builder group (- -logblock.*) it still says 'unknown command'
Edit2: If I remove essentials it stops doing it, but I don't recall essentials ever using a wood pick for anything.
Edit3: Fixed it, it was /powertool
-
View User Profile
-
Send Message
Posted May 9, 2012@nate302 Good job buddy :D Answering all the questions like a BAWS :D
-
View User Profile
-
Send Message
Posted May 8, 2012@calum0812:
Not needed, it works fine for both.
@cyclo666:
Our server runs PEX, and vault. We wanted our mods to be able to do lookups, but not rollbacks. Our members don't have the tool permissions, so to them, they don't see the spam when right clicking "you don't have permission to use that command." Make sure you are also running 1.52, found in the dev link in the description above.
Here is our permission and lb config:
lb config:
http://pastebin.com/PdeTLAjc
permissions example:
http://pastebin.com/8kAReK3u
example world config:
http://pastebin.com/jBJCrzGs
-
View User Profile
-
Send Message
Posted May 8, 2012Are you going to include support for PermissionsEX or Vault etc.?
-
View User Profile
-
Send Message
Posted May 8, 2012@nate302
http:pastebin.com/kcZsDTyP
After getting the error I actually deleted my original config and let LogBlock re-generate a new one, but that didn't fix anything either.
-
View User Profile
-
Send Message
Posted May 7, 2012@cyclo666 your serve is based off a video I wish I could un-see :p
-
View User Profile
-
Send Message
Posted May 7, 2012@cyclo666
can you pastebin your entire config.yml, just edit out the database part
-
View User Profile
-
Send Message
Posted May 7, 2012Having a strange issue lately. When you left click with a wooden pick it says 'unknown command' and wont let you break blocks with that tool, right click works like its supposed to.
The only think I've changed lately is enabled chest access logging.
tools:
tool:
permissionDefault: 'TRUE'
item: 270
leftClickBehavior: NONE
params: area 0 all sum none limit 15 desc silent
rightClickBehavior: TOOL
aliases:
- t
defaultEnabled: true
mode: LOOKUP
canDrop: true
-
View User Profile
-
Send Message
Posted May 6, 2012@Baffu
You should grab a dev version of 1.52 :) It works fine with CB 1.2.5
@Chromifier
you'll need to post a little more info than that I'm afraid. What command are you typing when this happens? Are there any other issues?
-
View User Profile
-
Send Message
Posted May 6, 2012So what is happening. I am running 1.5.1 of this plugin. When is everyone moving to guardian. Also diddiz hasent been on in a while.
-
View User Profile
-
Send Message
Posted May 6, 2012Please Help:
-
View User Profile
-
Send Message
Posted May 4, 2012@iVMoRiginal
Yea that's why I still prefer the plugin that works, and has more features :D
-
View User Profile
-
Send Message
Posted May 4, 2012@GokouZWAR
The owner of this plugin has orphaned it.. So yes, it is dying. It still works fully though. Head over to http://dev.bukkit.org/server-mods/guardian/
It will be the ultimate rollback/logging plugin ONCE FINISHED. Its still under heavy development. Although it is actually working right now, it still has less features than logblock.
Guardian, when finished, will combine every feature of LogBlock, Hawkeye and BigBrother.