Giter Club home page Giter Club logo

logblock's Introduction

LogBlock

This plugin logs block changes such as breaking, placing, modifying, or burning to a MySQL Database. It can be used as an anti-griefing tool to find out who made a particular edit, or even roll back changes by certain players. Originally written by bootswithdefer, for hMod, ported to Bukkit by me, because of the inability to identfy griefers. BigBrother also did't work, so I was forced to do it myself. The honor belongs to bootswithdefer for the sourcecode, I only spent about 8 hours to transcribe. All functions except sign text logging shold work as in hMod. The use of permissions plugin is possible, but not necessary.

You can download development builds from our Jenkins server.

logblock's People

Contributors

aerulion avatar ammaraskar avatar bm01 avatar brainstone avatar brokkonaut avatar char3210 avatar darkarc avatar derflash avatar diddiz avatar epicplayera10 avatar fantahund avatar frymaster avatar ghostzero avatar gurkengewuerz avatar jamietech avatar joo200 avatar kleincrafter avatar l4borg avatar md-5 avatar mickael9 avatar odiumxxx avatar paul-maxime avatar peter200lx avatar phoenix616 avatar psithief avatar sahirshahryar avatar slide23 avatar themolkapl avatar timovv avatar wolvereness avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

logblock's Issues

Chests and /lb redo

Chests do not seem to work properly with /lb redo. the opposite of what you'd expect happens. Instead of replaying the players actions on the chest (removing the items, or putting them in) it does the opposite, removing things they put in and adding stuff they took out.

Shutdown Errors with 1317

Okay, so whenever I shutdown my 1317 server with LogBlock 1.32, I get the following error:

2011-10-15 14:26:53 [SEVERE] Error occurred (in the plugin loader) while disabling LogBlock v1.32 (Is it up to date?): null
java.lang.NullPointerException
    at java.lang.Class.isAssignableFrom(Native Method)
    at org.bukkit.plugin.java.JavaPluginLoader.removeClass(JavaPluginLoader.java:245)
    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:992)
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296)
    at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289)
    at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:166)
    at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

I'm not a programmer, but I would guess that this is a MySQL-related error, considering this also happens to the only other MySQL plugin on my server. (LWC)

Advanced Auto Clearlog

Allow to define multiple clearlog params to be executet each server start.

Like:
autoclearlog:

  • before 14d
  • player LeavesDecay before 3d

missing tables and fields after update

Just updated from 1.26 to 1.32 and I have these in my startup log:

2011-10-05 00:57:14 [INFO] [LogBlock] Version check: Your version is up to date
2011-10-05 00:57:14 [INFO] [LogBlock] Connecting to root@jdbc:mysql://localhost:3306/minecraft...
2011-10-05 00:57:14 [INFO] [LogBlock] Updating tables to 1.27 ...
2011-10-05 00:57:14 [SEVERE] [LogBlock Updater] Error:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'minecraft.lb-chat' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
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.Updater.update(Updater.java:95)
at de.diddiz.LogBlock.LogBlock.onLoad(LogBlock.java:79)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:142)
at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:104)
at net.minecraft.server.ServerConfigurationManager.(ServerConfigurationManager.java:52)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

2011-10-05 00:58:02 [SEVERE] [LogBlock Consumer] SQL exception on UPDATE lb-players SET lastlogin = FROM_UNIXTIME(1317797881), firstlogin = IF(firstlogin = 0, FROM_UNIXTIME(1317797881), firstlogin), ip = '/98.159.17.200:1706' WHERE playerid = 2;:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'lastlogin' in 'field list'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
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:278)
at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
at java.lang.Thread.run(Unknown Source)

Fix Explosion Logging for Explosions Without Entitites

Nothing happens in game, but I get this error. Its probably being caused by issues with AntiCreeper.

2011-08-07 03:42:26 [SEVERE] Could not pass event ENTITY_EXPLODE to LogBlock
java.lang.NullPointerException
at de.diddiz.LogBlock.LBEntityListener.onEntityExplode(LBEntityListener.java:50)
at org.bukkit.plugin.java.JavaPluginLoader$61.execute(JavaPluginLoader.java:670)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
at net.minecraft.server.Explosion.a(Explosion.java:195)
at net.minecraft.server.World.createExplosion(World.java:1467)
at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:145)
at net.minecraft.server.World.a(World.java:1459)
at net.anticreeper.AnticreeperEntityListener.explosionSound(AnticreeperEntityListener.java:43)
at net.anticreeper.AnticreeperEntityListener.onEntityExplode(AnticreeperEntityListener.java:30)
at org.bukkit.plugin.java.JavaPluginLoader$61.execute(JavaPluginLoader.java:670)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
at net.minecraft.server.Explosion.a(Explosion.java:195)
at net.minecraft.server.World.createExplosion(World.java:1467)
at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:145)
at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:118)
at net.minecraft.server.EntityCreature.c_(EntityCreature.java:64)
at net.minecraft.server.EntityLiving.v(EntityLiving.java:685)
at net.minecraft.server.EntityMonster.v(EntityMonster.java:26)
at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
at net.minecraft.server.EntityMonster.m_(EntityMonster.java:30)
at net.minecraft.server.EntityCreeper.m_(EntityCreeper.java:68)
at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
at net.minecraft.server.World.cleanUp(World.java:1104)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

[LogBlock] Exception in commands handler

2011-12-12 23:15:01 [WARNING] [LogBlock] Exception in commands handler:
java.lang.IllegalArgumentException: Wrong summarization mode
at de.diddiz.LogBlock.QueryParams.parseArgs(QueryParams.java:352)
at de.diddiz.LogBlock.QueryParams.(QueryParams.java:49)
at de.diddiz.LogBlock.CommandsHandler.onCommand(CommandsHandler.java:300)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:501)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

I have this problem

how i can fix that plz? i dont understand what is this bug

craftbukkit 1337
logblock 1.4.1

Thx dude ! Logblock <3

CRITICAL BUG: [WARNING] [LogBlock Consumer] Failed to add player X

I am receiving this message uncountable times and it is making me scared. Here is a log dump from one day:

00395: 2011-11-20 04:01:01 [WARNING] [LogBlock Consumer] Failed to add player Bugattisport1
00430: 2011-11-20 04:02:49 [WARNING] [LogBlock Consumer] Failed to add player tottenhamW
00442: 2011-11-20 04:04:28 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321779812), 25268, 1, 0, 0, '811', 55, '-188');:
00486: 2011-11-20 04:05:23 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321779812), 25268, 1, 0, 0, '810', 56, '-188');:
00519: 2011-11-20 04:06:16 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321779813), 25268, 1, 0, 0, '810', 55, '-188');:
00547: 2011-11-20 04:07:10 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321779814), 25268, 1, 0, 0, '810', 54, '-188');:
00567: 2011-11-20 04:08:04 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321779814), 25268, 1, 0, 0, '809', 55, '-188');:
00593: 2011-11-20 04:08:58 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321779815), 25268, 1, 0, 0, '809', 54, '-188');:
00611: 2011-11-20 04:09:52 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321779816), 25268, 1, 0, 0, '809', 53, '-188');:
00638: 2011-11-20 04:10:46 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321779816), 6, 0, 10, 1, '241', 69, '965');:
59686: 2011-11-20 05:33:43 [INFO] [LogBlock Consumer] Queue overloaded. Size: 1501
59688: 2011-11-20 05:33:45 [INFO] [LogBlock Consumer] Queue overloaded. Size: 1465
59689: 2011-11-20 05:33:45 [WARNING] [LogBlock Consumer] Failed to add player CrazyElmo95
59690: 2011-11-20 05:33:45 [WARNING] [LogBlock Consumer] Failed to add player Kolkman
59692: 2011-11-20 05:33:52 [WARNING] [LogBlock Consumer] Failed to add player Filip_13_
59693: 2011-11-20 05:33:52 [WARNING] [LogBlock Consumer] Failed to add player waldlauefer
59695: 2011-11-20 05:33:57 [WARNING] [LogBlock Consumer] Failed to add player Magpie
59696: 2011-11-20 05:33:57 [WARNING] [LogBlock Consumer] Failed to add player sebonk999
59697: 2011-11-20 05:34:03 [WARNING] [LogBlock Consumer] Failed to add player TheButteryToast
59698: 2011-11-20 05:34:03 [WARNING] [LogBlock Consumer] Failed to add player granovist
59891: 2011-11-20 05:50:51 [WARNING] [LogBlock Consumer] Failed to add player skyseeker
59911: 2011-11-20 05:51:15 [WARNING] [LogBlock Consumer] Failed to add player masonblackops
59940: 2011-11-20 05:52:03 [WARNING] [LogBlock Consumer] Failed to add player Autoblocked2010
59965: 2011-11-20 05:52:21 [WARNING] [LogBlock Consumer] Failed to add player darquesse
60249: 2011-11-20 06:00:39 [WARNING] [LogBlock Consumer] Failed to add player Bombola
60280: 2011-11-20 06:01:45 [WARNING] [LogBlock Consumer] Failed to add player Deejdd
89553: 2011-11-20 06:21:15 [WARNING] [LogBlock Consumer] Failed to add player panthers898
90003: 2011-11-20 06:43:07 [WARNING] [LogBlock Consumer] Failed to add player hazzasafc4life
90124: 2011-11-20 06:46:22 [WARNING] [LogBlock Consumer] Failed to add player mousey225
90153: 2011-11-20 06:46:57 [WARNING] [LogBlock Consumer] Failed to add player diamondminer436
90992: 2011-11-20 07:12:45 [WARNING] [LogBlock Consumer] Failed to add player janjaap2
91452: 2011-11-20 07:28:26 [WARNING] [LogBlock Consumer] Failed to add player roanjames
91471: 2011-11-20 07:28:44 [WARNING] [LogBlock Consumer] Failed to add player Taliperse
91520: 2011-11-20 07:30:09 [WARNING] [LogBlock Consumer] Failed to add player jumsta999
91597: 2011-11-20 07:31:28 [WARNING] [LogBlock Consumer] Failed to add player BrandonWINS
91677: 2011-11-20 07:34:12 [WARNING] [LogBlock Consumer] Failed to add player JNEftw
91859: 2011-11-20 07:37:47 [WARNING] [LogBlock Consumer] Failed to add player Cave_Dweller
92085: 2011-11-20 07:46:42 [WARNING] [LogBlock Consumer] Failed to add player TheEgyptainKing
92494: 2011-11-20 07:58:20 [WARNING] [LogBlock Consumer] Failed to add player RezionAce
92535: 2011-11-20 07:59:48 [WARNING] [LogBlock Consumer] Failed to add player KingHogger
150532: 2011-11-20 08:11:13 [WARNING] [LogBlock Consumer] Failed to add player Randomsampyla
150580: 2011-11-20 08:12:20 [WARNING] [LogBlock Consumer] Failed to add player hellbringer715
151186: 2011-11-20 08:17:08 [WARNING] [LogBlock Consumer] Failed to add player WickedSick112
152851: 2011-11-20 08:58:44 [WARNING] [LogBlock Consumer] Failed to add player Jaystar1itall
153352: 2011-11-20 09:11:30 [WARNING] [LogBlock Consumer] Failed to add player pukpietje123
153420: 2011-11-20 09:13:04 [WARNING] [LogBlock Consumer] Failed to add player nitraut12345
154252: 2011-11-20 09:34:15 [WARNING] [LogBlock Consumer] Failed to add player jonsteinar
154323: 2011-11-20 09:36:28 [WARNING] [LogBlock Consumer] Failed to add player Vojta_1211
154373: 2011-11-20 09:37:09 [WARNING] [LogBlock Consumer] Failed to add player EpicBeast31
154563: 2011-11-20 09:41:14 [WARNING] [LogBlock Consumer] Failed to add player Wizard_CZ
154764: 2011-11-20 09:45:49 [WARNING] [LogBlock Consumer] Failed to add player MediisCZ
154927: 2011-11-20 09:47:32 [WARNING] [LogBlock Consumer] Failed to add player Goldencar
155122: 2011-11-20 09:50:43 [WARNING] [LogBlock Consumer] Failed to add player Asadamcan
155443: 2011-11-20 09:58:21 [WARNING] [LogBlock Consumer] Failed to add player bradcreeper26
155815: 2011-11-20 10:06:21 [WARNING] [LogBlock Consumer] Failed to add player apan16
156583: 2011-11-20 10:24:13 [WARNING] [LogBlock Consumer] Failed to add player Kantalope
157462: 2011-11-20 10:47:30 [WARNING] [LogBlock Consumer] Failed to add player AmX15
157488: 2011-11-20 10:47:59 [WARNING] [LogBlock Consumer] Failed to add player redstoneminer794
216958: 2011-11-20 11:29:06 [WARNING] [LogBlock Consumer] Failed to add player Badger12321
217226: 2011-11-20 11:34:41 [WARNING] [LogBlock Consumer] Failed to add player mangz115
217944: 2011-11-20 11:49:26 [WARNING] [LogBlock Consumer] Failed to add player InTeNsEbUiLdEr
218072: 2011-11-20 11:52:15 [WARNING] [LogBlock Consumer] Failed to add player candyman4710
218111: 2011-11-20 11:53:14 [WARNING] [LogBlock Consumer] Failed to add player tonychuchu
218277: 2011-11-20 11:56:43 [WARNING] [LogBlock Consumer] Failed to add player Steffaldo
218318: 2011-11-20 11:57:22 [WARNING] [LogBlock Consumer] Failed to add player BlitznFlits
218360: 2011-11-20 11:57:37 [WARNING] [LogBlock Consumer] Failed to add player dino2345
218894: 2011-11-20 12:04:51 [WARNING] [LogBlock Consumer] Failed to add player corwin28
219205: 2011-11-20 12:09:21 [WARNING] [LogBlock Consumer] Failed to add player StoneyJr4
220443: 2011-11-20 12:28:38 [WARNING] [LogBlock Consumer] Failed to add player DEquick90
220858: 2011-11-20 12:35:47 [WARNING] [LogBlock Consumer] Failed to add player VBs_Minecraft
221060: 2011-11-20 12:39:24 [WARNING] [LogBlock Consumer] Failed to add player hellfia1993
221172: 2011-11-20 12:42:41 [WARNING] [LogBlock Consumer] Failed to add player coolkiddj123456
221622: 2011-11-20 12:56:24 [WARNING] [LogBlock Consumer] Failed to add player apewithnuts
221785: 2011-11-20 12:59:47 [WARNING] [LogBlock Consumer] Failed to add player Nikke89
223118: 2011-11-20 13:30:26 [WARNING] [LogBlock Consumer] Failed to add player forlorn_wolf
223531: 2011-11-20 13:40:41 [WARNING] [LogBlock Consumer] Failed to add player fegeve
223841: 2011-11-20 13:50:33 [WARNING] [LogBlock Consumer] Failed to add player boboboj8
223842: 2011-11-20 13:50:33 [WARNING] [LogBlock Consumer] Failed to add player Parkes24
223843: 2011-11-20 13:50:33 [WARNING] [LogBlock Consumer] Failed to add player boscoman9
223844: 2011-11-20 13:50:33 [WARNING] [LogBlock Consumer] Failed to add player jacksonaiken
223845: 2011-11-20 13:50:34 [WARNING] [LogBlock Consumer] Failed to add player logan2th
224024: 2011-11-20 13:57:03 [WARNING] [LogBlock Consumer] Failed to add player themasterx59
224113: 2011-11-20 14:00:19 [WARNING] [LogBlock Consumer] Failed to add player yoee
224229: 2011-11-20 14:03:37 [WARNING] [LogBlock Consumer] Failed to add player Xtorcher_XD
224230: 2011-11-20 14:03:37 [WARNING] [LogBlock Consumer] Failed to add player mineboy217
224712: 2011-11-20 14:17:24 [WARNING] [LogBlock Consumer] Failed to add player Golden_Conqueror
225406: 2011-11-20 14:43:32 [WARNING] [LogBlock Consumer] Failed to add player eaglefeather
225592: 2011-11-20 14:47:05 [WARNING] [LogBlock Consumer] Failed to add player SCOOBDOOS
226000: 2011-11-20 14:57:04 [WARNING] [LogBlock Consumer] Failed to add player CanibalHunter
226546: 2011-11-20 14:59:19 [WARNING] [LogBlock Consumer] Failed to add player diamondminer436
226547: 2011-11-20 14:59:19 [WARNING] [LogBlock Consumer] Failed to add player Bugattisport1
226632: 2011-11-20 15:00:28 [WARNING] [LogBlock Consumer] Failed to add player janjaap2
226701: 2011-11-20 15:02:47 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321819311), 38306, 1, 0, 0, '-1226', 6, '668');:
226760: 2011-11-20 15:03:28 [WARNING] [LogBlock Consumer] Failed to add player eaglefeather
314797: 2011-11-20 15:10:28 [WARNING] [LogBlock Consumer] Failed to add player AmX15
314846: 2011-11-20 15:11:27 [WARNING] [LogBlock Consumer] Failed to add player Chuck111222333
315262: 2011-11-20 15:15:59 [WARNING] [LogBlock Consumer] Failed to add player ZeroMechOne
315369: 2011-11-20 15:19:30 [WARNING] [LogBlock Consumer] Failed to add player martinharvey
315483: 2011-11-20 15:23:38 [WARNING] [LogBlock Consumer] Failed to add player gracieuni
315519: 2011-11-20 15:24:32 [WARNING] [LogBlock Consumer] Failed to add player bnaff
315558: 2011-11-20 15:25:12 [WARNING] [LogBlock Consumer] Failed to add player OfProxy
315593: 2011-11-20 15:25:42 [WARNING] [LogBlock Consumer] Failed to add player LocoCrago
315714: 2011-11-20 15:27:42 [WARNING] [LogBlock Consumer] Failed to add player gunnerstrip7
316137: 2011-11-20 15:37:05 [WARNING] [LogBlock Consumer] Failed to add player tonychuchu
316285: 2011-11-20 15:41:05 [WARNING] [LogBlock Consumer] Failed to add player robotalex12
316316: 2011-11-20 15:41:20 [WARNING] [LogBlock Consumer] Failed to add player Redlac31
316423: 2011-11-20 15:42:58 [WARNING] [LogBlock Consumer] Failed to add player Arcanomancer
316808: 2011-11-20 15:50:22 [WARNING] [LogBlock Consumer] Failed to add player thesuperchrisb
317338: 2011-11-20 15:58:25 [WARNING] [LogBlock Consumer] Failed to add player shark101202
318115: 2011-11-20 16:11:21 [WARNING] [LogBlock Consumer] Failed to add player xDeMoNoLoGy
318316: 2011-11-20 16:14:24 [WARNING] [LogBlock Consumer] Failed to add player mother2fan1
318317: 2011-11-20 16:14:24 [WARNING] [LogBlock Consumer] Failed to add player apewithnuts
318954: 2011-11-20 16:26:13 [WARNING] [LogBlock Consumer] Failed to add player duop9999
319061: 2011-11-20 16:29:10 [WARNING] [LogBlock Consumer] Failed to add player uiguhqu
319191: 2011-11-20 16:31:58 [WARNING] [LogBlock Consumer] Failed to add player InTeNsEbUiLdEr
319192: 2011-11-20 16:31:58 [WARNING] [LogBlock Consumer] Failed to add player Teckno683
319390: 2011-11-20 16:37:27 [WARNING] [LogBlock Consumer] Failed to add player apatlan
319391: 2011-11-20 16:37:27 [WARNING] [LogBlock Consumer] Failed to add player MasterFunk12
319725: 2011-11-20 16:46:32 [WARNING] [LogBlock Consumer] Failed to add player webwee2
320508: 2011-11-20 16:51:20 [WARNING] [LogBlock Consumer] Failed to add player webwee2
320509: 2011-11-20 16:51:20 [WARNING] [LogBlock Consumer] Failed to add player tonychuchu
320546: 2011-11-20 16:51:32 [WARNING] [LogBlock Consumer] Failed to add player MasterFunk12
320755: 2011-11-20 16:54:39 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1321826027), 45818, 1, 0, 0, '1221', 10, '548');:
320848: 2011-11-20 16:56:06 [WARNING] [LogBlock Consumer] Failed to add player poikluy3
321653: 2011-11-20 17:13:50 [WARNING] [LogBlock Consumer] Failed to add player AmX15
322026: 2011-11-20 17:28:00 [WARNING] [LogBlock Consumer] Failed to add player claytonk123
322380: 2011-11-20 17:45:27 [WARNING] [LogBlock Consumer] Failed to add player woodland1
322744: 2011-11-20 17:57:05 [WARNING] [LogBlock Consumer] Failed to add player meta_dragon
322848: 2011-11-20 17:59:38 [WARNING] [LogBlock Consumer] Failed to add player Hidonian
323100: 2011-11-20 18:06:58 [WARNING] [LogBlock Consumer] Failed to add player kiduarhllum16
323240: 2011-11-20 18:09:36 [WARNING] [LogBlock Consumer] Failed to add player Teckno683
324484: 2011-11-20 18:44:21 [WARNING] [LogBlock Consumer] Failed to add player magiccupcake
324979: 2011-11-20 19:02:19 [WARNING] [LogBlock Consumer] Failed to add player M3K33L
324980: 2011-11-20 19:02:19 [WARNING] [LogBlock Consumer] Failed to add player iceywill
325218: 2011-11-20 19:09:51 [WARNING] [LogBlock Consumer] Failed to add player jacksonaiken
325283: 2011-11-20 19:12:22 [WARNING] [LogBlock Consumer] Failed to add player Parkes24
325483: 2011-11-20 19:19:56 [WARNING] [LogBlock Consumer] Failed to add player gracieuni
325484: 2011-11-20 19:19:56 [WARNING] [LogBlock Consumer] Failed to add player dodobrain38
325759: 2011-11-20 19:27:46 [WARNING] [LogBlock Consumer] Failed to add player Blopez
325760: 2011-11-20 19:27:46 [WARNING] [LogBlock Consumer] Failed to add player MaxxyXD
327048: 2011-11-20 20:02:08 [WARNING] [LogBlock Consumer] Failed to add player Ownedyouin69
328335: 2011-11-20 20:47:01 [WARNING] [LogBlock Consumer] Failed to add player knight91108
329031: 2011-11-20 21:06:26 [WARNING] [LogBlock Consumer] Failed to add player xsypherx
329102: 2011-11-20 21:08:46 [WARNING] [LogBlock Consumer] Failed to add player didilyderp
329180: 2011-11-20 21:11:16 [WARNING] [LogBlock Consumer] Failed to add player lucaslb1
329761: 2011-11-20 21:30:13 [WARNING] [LogBlock Consumer] Failed to add player Xtorcher_XD
331072: 2011-11-20 22:17:31 [WARNING] [LogBlock Consumer] Failed to add player Dimensi0n
331224: 2011-11-20 22:22:16 [WARNING] [LogBlock Consumer] Failed to add player happyman361
331364: 2011-11-20 22:27:10 [WARNING] [LogBlock Consumer] Failed to add player vinillaice
332679: 2011-11-20 23:04:42 [WARNING] [LogBlock Consumer] Failed to add player bdazfirebird02
333086: 2011-11-20 23:17:22 [WARNING] [LogBlock Consumer] Failed to add player Jaystar1itall
333939: 2011-11-20 23:54:07 [WARNING] [LogBlock Consumer] Failed to add player TheRealMidget
334556: 2011-11-21 00:29:53 [WARNING] [LogBlock Consumer] Failed to add player Bugattisport1
334771: 2011-11-21 00:40:55 [WARNING] [LogBlock Consumer] Failed to add player masonblackops
335204: 2011-11-21 00:56:03 [WARNING] [LogBlock Consumer] Failed to add player EScribbles
335349: 2011-11-21 01:06:00 [WARNING] [LogBlock Consumer] Failed to add player trist111
335642: 2011-11-21 01:28:39 [WARNING] [LogBlock Consumer] Failed to add player seriouser
335746: 2011-11-21 01:36:24 [WARNING] [LogBlock Consumer] Failed to add player janjaap2
335812: 2011-11-21 01:39:35 [WARNING] [LogBlock Consumer] Failed to add player Diamond_Addict
336027: 2011-11-21 01:49:53 [WARNING] [LogBlock Consumer] Failed to add player spunky_trunks
336145: 2011-11-21 01:57:33 [WARNING] [LogBlock Consumer] Failed to add player bk1029
336254: 2011-11-21 02:01:43 [WARNING] [LogBlock Consumer] Failed to add player Thanyeles
336331: 2011-11-21 02:06:06 [WARNING] [LogBlock Consumer] Failed to add player Zombiebait101
336642: 2011-11-21 02:18:52 [WARNING] [LogBlock Consumer] Failed to add player Immortalclient
336724: 2011-11-21 02:21:49 [WARNING] [LogBlock Consumer] Failed to add player Loggiy
337312: 2011-11-21 03:09:43 [WARNING] [LogBlock Consumer] Failed to add player cylonportal

LBWebstats

Hello again,

I have removed lines 17,18,19,20,89,90, and 91 in index.php it shortened the error to just a MySQL error.

Fatal error: Call to undefined function mysql_connect() in /home/brodie/www/lbwebstats/index.php on line 17

Also visible here: http://liveandbuild.net/lbwebstats

Chest Log Bug

When LogBlock tries to log an Item taken from a Chest such as, Lapiz it will say it is an Ink Sack.

Could you add this so that it will say the actual block name for every block/item with a damage value?

Option to totally revert the log displaying order

Dear @DiddiZ , please make the latest changes appear on the bottom of the screen instead of the top of it. I do not wish to require my moderators to use ImprovedChat now that it logs chests as well.

Largely possible by tweaking showPage

LogBlock won't work in Minecraft

I'm hoping that i installed everything correctly, but when i log into my minecraft server and try to use an /lb command, nothing pulls up. When loading the server through cmd, this is what it says.....

[LogBlock] error while fetching connection
com.mysql.jdbc.exceptions.jdbc4.CommunicationsExeption: Communications link failure

And then a bunch of code info....
Any Advice?

SQL exception on UPDATE

2011-11-11 01:46:55 [SEVERE] [LogBlock Consumer] SQL exception on UPDATE lb-players SET lastlogin = FROM_UNIXTIME(1320972412), firstlogin = IF(firstlogin = 0, FROM_UNIXTIME(1320972412), firstlogin), ip = '/109.215.106.112:50782' WHERE playerid = 34;:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'lastlogin' in 'field list'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
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:276)
at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
at java.lang.Thread.run(Unknown Source)

2011-11-11 01:46:35 [SEVERE] [LogBlock Consumer] SQL exception on UPDATE lb-players SET onlinetime = ADDTIME(onlinetime, TIMEDIFF(FROM_UNIXTIME(1320972390), lastlogin)) WHERE playerid = 34;:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'onlinetime' in 'field list'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
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:276)
at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
at java.lang.Thread.run(Unknown Source)

how i can fix that? i dont understand what is this bug

craftbukkit 1337
spout 510
cauth 1.4
logblock 1.4

Error when dumping logs

I get this error when dumping the logs

2011-10-05 08:50:09 [SEVERE] [LogBlock ClearLog] Exception while dumping log:
java.sql.SQLException: Access denied for user 'kunden_81053'@'%' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
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.CommandsHandler$CommandClearLog.run(CommandsHandler.java:723)
at de.diddiz.LogBlock.CommandsHandler$AbstractCommand.(CommandsHandler.java:405)
at de.diddiz.LogBlock.CommandsHandler$CommandClearLog.(CommandsHandler.java:693)
at de.diddiz.LogBlock.CommandsHandler$CommandRollback.run(CommandsHandler.java:628)
at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
at java.lang.Thread.run(Unknown Source)

LBWebstats

Hello, i cannot seem to get the webstats to work at all. Here is my config if this helps (below). The name of the table for the default world is lb-default my password and user are correct but the webpage shows no content http://liveandbuild.net/lbwebstats.

I will note that i'm running Ubuntu 11.10 and using Apache server to run my site.

Archive Table

Feature request: It would be GREAT to have an archive table. So lb-main and lb-main-archive. The purpose being, I can trim the "main" table to something reasonable (say, 7 or 14 days) and keep insert performance high. But in the event I run a query that is outside of that range, LogBlock could query both the current and archive table. I found query performance with 2 months worth of data was actually reasonable (MySQL rocks), it was just the insert performance with the massive indexes that was lagging.

I know this would complicate the architecture a bit, but maybe it could be done in baby steps. For example, you could just add the archive table & option to use it, and instead of purging data into oblivion, just migrate it to the archive table for now. Then as time goes on, you could actually add it to the query interface to seamlessly use both tables.

Consumer won't recover from a communications link failure

So recently my VPS hosting my MySQL server has been experiencing slight downtime problems. I figured that LogBlock would handle this okay, as it did in the past, but as of the latest update, after receiving a communications link failure, the consumer fails to save the queue.

Forcing using /lb savequeue results in the queue size being printed out shamelessly, and pulling the plug on the server results in the log being constantly spammed with the same queue size maintained. After testing, I pulled the plug while this was happening, and attempted to get the history of a block. Predictably, an exception occurred. After restarting, it began querying the database again, but the consumer never maintained the connection.

So far, I've lost around 64,000 edits, and I'm getting fed up with LogBlock.

Stack trace: http://pastebin.com/EsNBpR1m

I'd do it myself, but I'm rather busy with my own project, but the main things that LogBlock should do are:

  • Not spam the console on every time the loop is run to save the queue
  • In the event that it can't re-establish connection, it needs to re-connect X number of times and try again.
  • If things are still going bad, save to a temporary database (IE sqlite) and optionally shut down the server to prevent further damage.

Lilypads not logging

I hope this is the right way to report bugs.
If I place a lilypad (item #111) on water, and use the info tool on it, it shows no data. No errors are logged on the console at any point.
This is with CB1502 and logblock build #71

SQL exception on UPDATE HELP Plz

2011-12-07 17:42:56 [SEVERE] [LogBlock Consumer] SQL exception on UPDATE lb-players SET onlinetime = ADDTIME(onlinetime, TIMEDIFF(FROM_UNIXTIME(1323276173), lastlogin)) WHERE playerid = 548;:
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'onlinetime' cannot be null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
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:276)
at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
at java.lang.Thread.run(Thread.java:636)

All the time with 1.3 and 1.4 ...

how i can fix that plz? i dont understand what is this bug
I'm not an hard user for SQL :/

craftbukkit 1337
logblock 1.4.1

Thx dude !

Chest lookup problem

Every chest action looks like player take all his inventory from chest + real action. If action is "put" i can see it, but if someone takes things from chest i cant see this through all fake messages...

/lb commands from backend

When using any lb command from the backend of a server it gives "error, check log" and does not generated any log.

Owner Parameter

It would look for the player who placed (owns) the block (sorry, kinda hard to explain). It would be used like this: say I want to see chestaccess for bob. I would type "/lb lookup player bob chestaccess". But I would'nt know if bob took those items from his chests or joe's chests. with the owner parameter, I could type "/lb lookup player bob chestaccess owner joe" This would return everything that bob took and placed into chests joe created. It could also be used to see who destroyed the blocks of someone else. "/lb lookup player bob owner joe" would return all blocks that bob destroyed that were originally placed by joe. Finally, if no players are specified, it would work like the "coords" parameter, only it would return names instead of positions. For example: "/lb lookup player bob owner" could return: "08-22 16:55:53 bob destroyed Dirt placed by joe"

Should also work with "!" prefix
/lb player diddiz owner !diddiz

toolblock bug

If you use a toolblock in a world which is not logged, then the toolblock is placeable and won't get removed by LogBlock.

This is a problem, since you can not give this tool to users who should not be allowed to spawn themselves the item which is the toolblock (default is bedrock..).

Webstats

I am having trouble using the webstats provided. The error provided is:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'brohoster.com' (4) in /home/jared22/public_html/stats/lb/lbstats.php on line 6
Verbindung zur Datenbank konnte nicht hergestellt werden

I've double checked the fields and they all seem correct. We use an McMMO stats and it works with the mysql so I'm not sure why this isin't working. Is this webstats working with the latest LogBlock?

Additionally, I think you may be missing a ' around "%mysqlpassword%'" in the lbstats.php, as shown below:

    $verbindung = mysql_connect('%host%', '%mysqluser%' , %mysqlpassword%') or die('Verbindung zur Datenbank konnte nicht hergestellt werden');

Thanks!

LBWebInterface

A web interface allowing to use all commands also accessible from the console, but providing better appearance and faster command building with some buttons.

Could work with webbukkit

/lb feed or /lb track

/lb feed [params]

so the user that uses the command gets informed of any updates to the parameters.
so for example, my username is sethiroth66, if i use:
/lb feed player Diddiz
it would update me (sethiroth66) of any changed that Diddiz makes.

and if Diddiz is placing >1 block at one time it would only pulse the feed every 10 seconds or so as a summary, and if with coords parameter would only show coord of last updated block (eg: "08-24 20:39:00 - 7 glass was created by Diddiz - 142, -5, 67")

also as an additional feature possibly have multiple feeds sorted by a index number for multiple feeds:
/lb feedlist
[ID - params]
1 - block 20 coords player Diddiz
2 - block 1 created player sethiroth66

and so if you want to remove a feed you can do something like:
/lb unfeed 2

Chat/Commands Lookup

Parameters for lookup commands:
To only show chat/commands
To search for a keyword

Failed to RollBack

It says:
Error, Check log.
Log:
[WARNING] [LogBlock] Exception in commands handler:
java.lang.IllegalArgumentException: No parameters specified.
at de.diddiz.LogBlock.QueryParams.parseArgs(QueryParams.java:276)
at de.diddiz.LogBlock.CommandsHandler.onCommand(CommandsHandler.java:217)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
2011-12-14 21:18:40 [INFO] fresser lost connection: user was kicked.
2011-12-14 21:18:41 [INFO] alexsabro lost connection: user was kicked.
2011-12-14 21:18:41 [INFO] aske007 lost connection: user was kicked.
2011-12-14 21:18:41 [INFO] emilsabro lost connection: user was kicked.

Advanced Chat Logging

Adding some regexes to log some commands as chat, like /global, herochat commands etc.

Logging auto-broken blocks (Plus tree growth maybe?)

When a player breaks a block and there is a sign or torch on it (Or other similar blocks), the sign or torch will automatically be broken, but there will be no log of it, so if you rolled back a huge building that was burnt and there were a ton of torches inside, they would all be lost. I think that it would be really great if these "auto-broken" blocks were logged as the player who broke the original block. It would make rolling back large griefed buildings much easier. I think that this (Possibly along with logging tree growth, which griefers sometimes use so that Admins can't roll it back) would make LogBlock a perfect plugin. Although I realise that Guardian is under heavy development, and that you don't have much time for LogBlock any more, I still think that this feature should be added to LogBlock before its the release of Guardian. I have no idea how hard this would be to do, but it would make LogBlock way better.
Edit: Plus maybe sand and gravel fall logging? I know that this is a lot to ask, but it would make the plugin perfect.

Log piston move

While i'd assume logging who triggered a piston move event would be near impossible, it might be useful to see piston move events in the lookup, similar to how water damage can be seen.

The piston extend event should give you a list of blocks effected by a move.

To reduce the number of events logged (like how water flow is limited), could be toggled to only log to file when a block is broken (think pistons pushing blocks to break doors etc).

Error, check log

WARNING] [LogBlock] Exception in commands handler:
java.lang.NullPointerException
at de.diddiz.LogBlock.CommandsHandler.onCommand(CommandsHandler.java:127)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:364)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

Thats my problem.

Improve furnace logging

they're sort of messed up b/c coal would be in the bottom
and after rollback its in the top
and whatever was in the top slot (sometimes iron, or other smelted stuff) is gone

Data truncation: Out of range value for column 'type'

LB throws SQL exceptions reporting some item, instead of a block to be placed:

2011-08-18 16:51:08 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO `lb_bm_world` (date, playerid,
replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1313679068), 34, 0, 345, 0, '-464', 72, '-364');:
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'type' 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:272)
        at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
        at java.lang.Thread.run(Thread.java:636)

The item types are semmingly random.

Exception in commands handler?

2011-12-05 17:48:40 [WARNING] [LogBlock] Exception in commands handler:
java.lang.NullPointerException
at org.bukkit.craftbukkit.inventory.CraftInventory.first(CraftInventory.java:177)
at org.bukkit.craftbukkit.inventory.CraftInventory.removeItem(CraftInventory.java:297)
at de.diddiz.LogBlock.CommandsHandler.onCommand(CommandsHandler.java:155)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:372)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

i get this when trying to /lb tool disable
Any ideas?

LogBlock cannot connect to MySQL if config values are integers.

LogBlock doesn't seem to be able to read integers from the config file when it expects strings?. When using a number as a username or password it fails to connect. This is a problem for those of us who are assigned such passwords by our host. Observe the difference:

mysql:
user: test
port: 3306
password: test
host: mysqlus2.fragnet.net
database: ****

2011-12-13 01:53:53 [SEVERE] [LogBlock] Error while fetching connection:
java.sql.SQLException: Access denied for user 'test'@'108.60.213.82' (using password: YES)

mysql:
user: 1234
port: 3306
password: 1234
host: mysqlus2.fragnet.net
database: ****

2011-12-13 02:04:13 [SEVERE] [LogBlock] Error while fetching connection:
java.sql.SQLException: Access denied for user ''@'108.60.213.82' (using password: NO)

LBKillStats

Like LBWebStats, summing kills per player, but on the main page a listing of the 20 newest kills

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.