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 27, 2012@Takumi8
Thats half the error.
-
View User Profile
-
Send Message
Posted Jul 27, 2012hi again.. a reinstall from scratch solved the tool problem..
and i found out that the error comes only when a user types in colored text on signs. start: 03:12:32 CONSOLE: [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO `lb-world-sign` (id, signtext) values (LAST_INSERT_ID(), ' TESTINGLB');: 03:12:32 CONSOLE: string value: '\xA71 TES...' for column 'signtext' at row 1 end:
Thank you for a awesome plugin Regards Tiwar
-
View User Profile
-
Send Message
Posted Jul 27, 201228.07 01:51:54 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) 28.07 01:51:54 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:616) 28.07 01:51:54 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 28.07 01:51:54 [Server] INFO at sun.reflect.GeneratedMethodAccessor339.invoke(Unknown Source) 28.07 01:51:54 [Server] INFO at de.diddiz.LogBlock.listeners.ToolListener.onPlayerInteract(ToolListener.java:44) 28.07 01:51:54 [Server] INFO Caused by: java.lang.NullPointerException 28.07 01:51:54 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 28.07 01:51:54 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) 28.07 01:51:54 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567) 28.07 01:51:54 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 28.07 01:51:54 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) 28.07 01:51:54 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 28.07 01:51:54 [Server] INFO at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43) 28.07 01:51:54 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:537) 28.07 01:51:54 [Server] INFO at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:94) 28.07 01:51:54 [Server] INFO at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) 28.07 01:51:54 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460) 28.07 01:51:54 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 28.07 01:51:54 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) 28.07 01:51:54 [Server] INFO org.bukkit.event.EventException 28.07 01:51:54 [Server] SEVERE Could not pass event PlayerInteractEvent to LogBlock
Please Help. THanks
-
View User Profile
-
Send Message
Posted Jul 27, 2012@jamietech
I'm trying to make my open chest bank type plugin.
How would I go about setting the player that opened the chest so that it plays nicely with LogBlock?
-
View User Profile
-
Send Message
Posted Jul 27, 2012@md_5
Awesome! Thanks a ton!
-
View User Profile
-
Send Message
Posted Jul 27, 2012@EpicMysticz
That plugin is out-of-date with Bukkit. Nag the author to update it.
-
View User Profile
-
Send Message
Posted Jul 27, 2012@jamietech
But the plugin I need to have is basicly "XrayInformer" which tells me that I specificly need to have LogBlock 1.50 installed, I've tried to use 1.52 but that's not working out completely with the plugin commands.
Link to it: http://dev.bukkit.org/server-mods/xray-informer/
EDIT: Never mind! It was an error on my end!
-
View User Profile
-
Send Message
Posted Jul 27, 2012@EpicMysticz
AFAIK that version does not work on 1.2.x MC
-
View User Profile
-
Send Message
Posted Jul 27, 2012Could anybody here give me a mirror to logblock 1.50? I can't get the download and I need it desperatly for one of my plugins.
-
View User Profile
-
Send Message
Posted Jul 27, 2012@SuperPyroManiac
I will add block physics logging as soon as I can. Worldedit on the otherhand is stupid.
-
View User Profile
-
Send Message
Posted Jul 27, 2012OH how I love Logblock, the most amazing plugin I have ever used. Although now core protect can log falling sand, gravel, block under a sign and fix the sign, and now WORLD EDIT! Will it ever be possible for Logblock to support these? As I hate coreprotect because its searching and lookup is horrid.
I know it's asking a lot but it would help not only me but so many other servers. And wouldn't you feel amazing knowing you own the best logging plugin there is?
-
View User Profile
-
Send Message
Posted Jul 26, 2012@md_5 Whenever somebody breaks a block placed by a player, instead of saying name has broken block it just says Player did an unspecified action
Please help me out here, I do not want to use CoreProtect or anything... I am using the most up-to-date release and i have even tried some of the Dev builds!
-
View User Profile
-
Send Message
Posted Jul 26, 2012@Techtony96
MOST VIRTUAL CHEST PLUGINS ARE NOT COMPATIBLE!! They DON'T set the player who is opening the chest thus causing errors with LogBlock. Bug the fake-chest plugin developer to fix this.
-
View User Profile
-
Send Message
Posted Jul 26, 2012@kahlilnc
Download the Latest version of the questioner from the Github page. (Diddiz/LogblockQuestioner)
-
View User Profile
-
Send Message
Posted Jul 26, 2012/yes and /no do not work :( I am trying to clear logs :(
-
View User Profile
-
Send Message
Posted Jul 26, 2012@tiwar
Nobody is trying to place signs, this lb-world-signs is just a table of your MySQL database. To me, it seems as if you have some problems with your database connection. Check whether the database user you use to connect has the permission to WRITE into and not only to read the database you use.
-
View User Profile
-
Send Message
Posted Jul 26, 2012-
View User Profile
-
Send Message
Posted Jul 25, 2012@tiwar
Please read through the wiki FAQ on GitHub and then submit an issue ticket if you still can't get it to work.
@Nitsuran
Please read the FAQ on the GitHub wiki.
@Mr_H4mm3r
AFAIK md_5 is getting this fixed :)
-
View User Profile
-
Send Message
Posted Jul 25, 2012I keep getting messages like these
7/25/2012 5:28:46 PM [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO `lb-world` (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1343254972), 24, 0, 57, 0, '278301', 171, '67784');: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'x' at row 1 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3591) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:779) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:622) at de.diddiz.LogBlock.Consumer.run(Consumer.java:294) at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) at java.lang.Thread.run(Unknown Source)
How Come I have tried making the x column bigger by changing the size from 6 to 15, but it still gives me this error.
-
View User Profile
-
Send Message
Posted Jul 25, 2012@jamietech
The site doesn't appears.. Google Chrome says:
Ops! Google Chrome couldn't connect to: diddiz.insane-architects.net:8080
I can choose to go to a cache save, but that doesn't work