Commit Graph
600 Commits
Author SHA1 Message Date
Philip Cass 2ff6da183b Use modern column widths if upgrading from very old version 2013-12-04 11:34:25 +00:00
Philip Cass d50c48f79d Check sign text is being logged before attempting to update table 2013-12-04 09:45:38 +00:00
Philip Cass d055d2af86 Increase width of kill table coordinate fields to mirror the block table increase 2013-12-04 09:32:36 +00:00
frymaster 8d820783a1 Merge pull request #499 from frymaster/nonentity-kill-logging
Implement logging for environmental (non-entity) kills
2013-11-19 05:50:06 -08:00
Philip Cass fa9a86a3b9 Implement logging for environmental (non-entity) kills, such as suffocation. Adds #80
This change adds a new config option, logEnvironmentalKills.  When set to true,
Logblock will record entity deaths not directly caused by another entity.
(for example, suffocation, or burning to death)
2013-11-13 14:28:42 +00:00
Philip Cass ab53755eaf Typo in config error message 2013-11-13 12:00:22 +00:00
Philip Cass 459a95fd1e Merge remote branch 'origin/master' 2013-11-12 13:23:05 +00:00
Philip Cass eb84fd1380 Various minor improvements to querying and logging
- Allow use of "both" as a query parameter. This will search for created and destroyed blocks, but not chestaccess. This is useful for situations where the query defaults to "all" e.g. rollbacks. Fixes #210, #252
- Add block negation query parameter. Like with player names, you can now precede a block name with "!" to query for all except the specified blocks. Fixes #452, #216
- Allow use of area parameter with location parameter, as long as location is specified first. Fixes #458
- Better error when asking for kill log without world specified
- Don't try to process events where the block is null.  Fixes #463
- Replace problematic characters in world names with underscores when deciding on a default table name.  Fixes #409
- Adjust for cocoa beans having reversed attachment direction in smart logging
- Prevent out of bounds exception if a single-word timespec ends in a number.  Fixes #354
- Prevent error when specifying a killer or victim in a teleport lookup.  Fixes #333
2013-11-12 13:08:52 +00:00
Philip Cass 8c9f78a985 Enchance inventory access log output message
As there are more inventory types now, it is worthwhile including the inventory name in the output

e.g:

11-07 20:47:15 frymaster took 64x iron ingot from furnace
11-07 13:42:14 frymaster put 1x iron ingot into beacon
2013-11-11 16:03:16 +00:00
Philip Cass 6992a4ffa8 Enchance inventory access log output message
As there are more inventory types now, it is worthwhile including the inventory name in the output

e.g:

11-07 20:47:15 frymaster took 64x iron ingot from furnace
11-07 13:42:14 frymaster put 1x iron ingot into beacon
2013-11-08 10:32:13 +00:00
frymaster b403e49168 Merge pull request #495 from frymaster/chest-access
Expand chestaccess querying
2013-11-08 01:00:59 -08:00
Philip Cass 6025469dfa Expand chestaccess querying
Make a decison on whether or not to return chest access data based on the
BlockChangeType (ALL or CHESTACCESS) rather than partly on the block parameter
as these are the only two query types that don't enforce type != replaced

This is helpful because the list of blocks to request chest access for was
outdated and is duplicated in 3 different places, whereas the new method
will return whatever results have been logged regardless of type.

In addition, if the query type is CHESTACCESS (but not ALL), we can use
an alternate query that is vastly more efficient.  In tests (26 million
row log table, 400,000 row chest table) the query time for all chest results
was reduced from 30 seconds to 3.

Allows the chestaccess parameter to return data from the following inventory types:

- Brewing stand
- Trapped chest (fixes #483)
- Dropper
- Hopper
- Beacon

Note that this only affects lookup of logged items; the logging process has not
been touched, so #433 and similar have not been addressed

Also, update the list of valid container types, which will improve logging of
broken containers.
2013-11-07 13:51:02 +00:00
frymaster d7862e4fa6 Merge pull request #493 from frymaster/set-text-type
Minor database change and query change
2013-11-07 01:40:05 -08:00
Philip Cass 7ac35e4698 Alter INSERT IGNORE queries to workaround innodb auto increment behaviour
An INSERT IGNORE query will still increment when using innodb, even if no row is inserted.  We can work around this by using a slightly convoluted query, but this only works if the table is non-empty, so also check for that on startup and create a dummy record if necessary.
2013-11-06 10:45:13 +00:00
Philip Cass c117bcd854 Minor database change
- Text fields should be UTF-8. Fixes #491
2013-11-06 09:27:00 +00:00
md-5 97be730fa8 Maven deploy 2013-10-18 07:36:21 +11:00
md-5 05916798cf Merge pull request #487 from afistofirony/patch-1
More specific information when no params/args specified
2013-10-10 16:25:23 -07:00
Sahir 3c75ed1cbb More specific information when no params/args specified
This commit adds the ArrayIndexOutOfBoundsException to onCommand's exception-catcher. This is so the user gets more specific information than "Error, check server.log" when they don't give any arguments.
2013-10-10 19:19:39 -04:00
md-5 e4a42dcc1b Merge pull request #484 from socram8888/master
Added logging of Locked Chest decay
2013-09-26 05:17:59 -07:00
Marcos Vives Del Sol aa09891f21 Added logging of Locked Chest decay 2013-09-26 13:16:22 +02:00
Ammar Askar 044863bc3d Merge pull request #428 from frymaster/death-event
Use alternate method of logging deaths. Fixes #350
2013-08-21 06:39:36 -07:00
Ammar Askar b7398bfde1 Re-organize task to be run onEnable, should fix #468 2013-08-08 19:10:09 +05:00
Ammar Askar aa78a2958c Merge branch 'master' of github.com:LogBlock/LogBlock 2013-08-08 18:47:28 +05:00
frymaster ac82d8848b Use alternate method of logging deaths. Fixes #350 2013-08-06 00:05:56 +01:00
Ammar Askar 10cbb51cb1 Merge pull request #378 from DerFlash/fixPlayerMax
Fix SMALLINT only allowing 65535 players to log
2013-08-05 12:44:19 -07:00
Ammar Askar f9052e0afc Merge pull request #440 from DarkArc/1_6_1
Updated Smart Logging for MC 1.6.1
2013-07-02 15:26:57 -07:00
Dark Arc 13d8498709 Moved a check to ensure players could still place the TB in a world which isn't logged 2013-07-02 17:29:39 -04:00
Dark Arc 2a2079c1a3 Updated Smart Logging for MC 1.6.1 2013-07-02 17:24:27 -04:00
Ammar Askar 37bde5b154 Merge pull request #427 from frymaster/timezone-fix
Use unix timestamps in queries.
2013-06-07 09:42:58 -07:00
frymaster 47569ec33d Send unix timestamps in all cases so we are never relying on timezone-dependent types 2013-06-07 16:26:16 +01:00
md-5 be11b45801 Merge pull request #384 from DarkArc/1_5
1.5 Updates
2013-06-01 23:18:17 -07:00
Dark Arc cc86c4e0e1 Added logging for various blocks spreading 2013-05-19 13:29:19 -04:00
Dark_Arc b8950857c4 Check to see if the world is being logged when logging chest access 2013-05-19 13:29:18 -04:00
Dark_Arc aa0c562db3 Provide feedback for the tool when the current world is not logged 2013-05-19 13:29:17 -04:00
Dark Arc e37a584f89 Fixed door logging 2013-05-19 13:29:16 -04:00
Dark Arc cf8fc322ab Added player and creature crop trample logging 2013-05-19 13:29:15 -04:00
Dark Arc 16cdb1c58b Added tripwire & pressure plate logging 2013-05-19 13:29:14 -04:00
Dark Arc 05c9a6d947 Added Logging for Comparator interaction 2013-05-19 13:29:13 -04:00
Ammar Askar d448f90e2d Explicitly use utf8 encoding for connection 2013-05-19 20:27:52 +06:00
Ammar Askar 596fdf054b Changed readme to markdown and added questioner 2013-04-15 23:24:29 +06:00
md-5 99caa06509 Merge pull request #377 from socram8888/master
Added logging of Minecarts with TNT
2013-03-30 16:31:49 -07:00
Björn Teichmann 602b1192d1 Fix SMALLINT only allowing 65535 players to log
We just ran into the problem where new users didn't make any edits and after some digging I just found out why:
The playerid in the kb-players table was a SMALLINT. Changing that to an INT should work for some more years now ;-)
2013-03-30 09:58:57 +01:00
Ammar Askar a1061ff2e4 Added ability to disable id sanity check 2013-03-26 04:11:50 +05:00
Ammar Askar 74c7e0e5b8 Added ability to disable id sanity check 2013-03-26 03:31:43 +05:00
socram8888 e44a0c1700 Added logging of Minecarts with TNT 2013-03-16 18:06:21 +01:00
md-5 9d652ff87c Merge pull request #375 from DarkArc/smartLFix
Smart Logging fix
2013-03-15 18:25:40 -07:00
Dark Arc a6f543feac Fixed an issue where smart logging could not make proper block comparison checks 2013-03-15 21:18:12 -04:00
md-5 25c7864133 Merge pull request #374 from DarkArc/smartLUpdate
Updated Smart Logging for MC 1.5
2013-03-15 17:31:04 -07:00
Dark Arc 8a3a61f90f Updated Smart Logging for MC 1.5 2013-03-15 20:15:44 -04:00
md-5 ce0aa22ec0 Merge pull request #371 from DerFlash/master
Better location query mechanism
2013-03-10 14:02:38 -07:00