Commit Graph
687 Commits
Author SHA1 Message Date
md_5 0ed8728d01 #703: Chest rollback issues on 1.12.1 2017-08-18 17:57:09 +10:00
md_5 40c1cc1c22 #702: MySQL error in upgrader 2017-08-16 20:52:28 +10:00
md_5 a51651c306 repo.md-5.net -> https 2017-08-13 19:41:34 +10:00
md_5 72851ca52f #700: Change chat columns to 256 2017-08-11 18:31:55 +10:00
md_5 defcfeeb07 #698: Misc explosion logging 2017-07-08 18:04:45 +10:00
René Preuß ba8c1281e3 Change materials.yml location to relative (#697) 2017-06-30 09:01:30 +10:00
Niklas 80de6eb383 Update for 1.12 (#694) 2017-06-10 08:27:28 +10:00
Max Lee 207c66809f Add separate logging entry for ender crystal explosions and default all posible explosions to true (#669) 2017-02-10 08:19:26 +11:00
Niklas ba0e83e437 Update for 1.11 and added shulker boxes (#687) 2016-12-01 09:37:50 +11:00
md_5 4195995ca9 Begin 1.10.1 development cycle 2016-05-06 17:12:39 +10:00
md_5 5a1c7ec422 1.10.0 release 2016-05-06 17:11:51 +10:00
Philip Cass 0e3a04766a We no longer build on java 6 2016-03-01 19:52:45 +00:00
md-5 9f319dfb7f Merge pull request #658 from parryjacob/master
Update to use Spigot 1.9
2016-03-02 06:44:50 +11:00
Jacob Parry 1f1483efab Update to use Spigot 1.9 2016-03-01 03:33:27 -05:00
Ammar Askar 6faa37928a Update HikariCP, shift over to Java7 2015-09-22 02:33:46 -04:00
frymaster 080450a278 Include lb-players table in UTF8(mb4) checks
Mojang enforce a very restricted set of characters for names, however offline servers can be sent a much wider set of characters.
Also, fix not using UTF8mb4 on table creation if possible.

Fixes #630
2015-08-03 20:28:44 +01:00
frymaster a2c162489a Move to proper three-part versioning (ie 1.9.4 instead of 1.94) and set the dev version to 1.10.0
If it detects a version number of the form 1.xy in the config, it will change that to 1.x.y, so we should make sure we always use e.g. 1.10.0 for version 1.10

Fixes #629
2015-07-30 22:27:06 +01:00
Philip Cass 232ddc6323 Added changelog file
If this is reasonably up to date we should be able to copy and paste it directly into DBO and github release pages
2015-07-28 15:59:37 +01:00
Philip Cass f4f4369861 Regularised MySQL String escaping and made name inserts use it 2015-07-27 20:01:15 +01:00
Philip Cass eb31555aa6 Update version for next dev series 2015-07-25 20:25:44 +01:00
Philip Cass 646c2e6376 Update version for release v1.94 2015-07-25 18:55:53 +01:00
Philip Cass 18f09a1d38 Merge pull request #621 from frymaster/legacy_methods
Re-added String-based queue methods to Consumer
2015-07-25 15:03:01 +01:00
Philip Cass c7d152400e Still assign weapon appropriately for projectile kills with no owner 2015-07-24 11:36:10 +01:00
Philip Cass c8b11a6b15 Add null check for projectile source. Fixes #626 2015-07-17 10:35:55 +01:00
frymaster ce323f5f50 Alter double chest type/location code
This alters the behaviour of the ``getInventoryHolderLocation`` and ``getInventoryHolderType`` methods in a way which should have identical behaviour for double chests but which should also not raise an exception if there are triple (or larger) chests.  The type will be correct; the location will at least return *something* which is the location of one of the chests involved, but it'll probably be semi-arbitrary what coordinates are returned.

Fixes #563 - note issue #533 which this does **not** address
2015-07-11 17:43:30 +01:00
Philip Cass a3b4f5d8ed Re-added legacy (non-UUID String based methods) for backwards compatibility.
These will look for an online player and use their UUID if found, or use a synthetic UUID if not.
2015-07-05 14:17:31 +01:00
Ammar Askar 5bac149692 Fix up javadocs 2015-06-23 19:48:20 +05:00
Philip Cass 115e9bd7ac Updated HikariCP version. Should result in more informative errors than in bug #617 2015-06-23 14:11:07 +01:00
Philip Cass 293d180abb Updated CI URL in pom.xml to point to correct repo 2015-04-09 10:46:06 +01:00
Philip Cass d8143a6d89 Add logging implementation for HikariCP. Fixes #606 2015-03-22 22:34:33 +00:00
Philip Cass 54545ac928 Clamp Y values to between 0 and 65535. Fixes #605 2015-03-22 17:37:54 +00:00
Ammar Askar 9f41fffbc3 Reformat the entire project:
Use of braces is now enforced EVERYWHERE
Switched to 4spaces instead of tabs
2015-03-22 20:15:04 +05:00
Philip Cass 7c52c10922 Use "count" var to determine how many rows have been processed 2015-03-22 15:04:27 +00:00
Philip Cass 21a74dc7b2 Merge pull request #602 from ammaraskar/connection_pool
Use HikariCP for connection pooling
2015-03-22 14:50:19 +00:00
Ammar Askar 35cf735141 Set pool's minimum idle connections to 2 and gave the pool a name 2015-03-21 20:46:13 +05:00
Ammar Askar 448b11b35e Use HikariCP for connection pooling 2015-03-21 02:55:28 +05:00
Ammar Askar 51fdff20a7 Added a debug configuration setting for timing and query information 2015-03-20 22:46:01 +05:00
Ammar Askar c3b9784efb Make sure chat logging considers players using /lb hide
Fixes #281
2015-03-20 20:32:23 +05:00
Ammar Askar 1f5b7fed7c Allow explicitly hiding or unhiding with /lb hide <on/off>. Addresses #526 2015-03-20 20:29:08 +05:00
Ammar Askar a719891f74 Update to latest Metrics revision 2015-03-20 20:07:10 +05:00
Philip Cass 47c4ad6264 Merge branch 'build-version-automation' of github.com:frymaster/LogBlock 2015-03-20 19:18:32 +05:00
Ammar Askar 1a0a742daa Clean up encapsulating values in quotes significantly
Added hopefully the first of many unit tests to make maintaining the project easier
2015-03-20 15:39:47 +05:00
Philip Cass 9c558f8a74 Directly set plugin version information from pom.xml. Will include build number
whenever the project version contains anything other than numbers and periods
i.e. has "-SNAPSHOT" in it.
2015-03-16 13:36:28 +00:00
Philip Cass e12b9eee2b Add missing playername index on table creation and make the updater enforce this
for existing tables

Fixes missing change from commit 143bcf6d76
2015-03-16 11:19:03 +00:00
Ammar Askar e2d1349be1 Add proper version info to maven 2015-03-09 22:03:18 +05:00
Philip Cass 27866504c3 Merge branch 'master' into issue-442
- Update PR to use Actor system
- Amend actorFromProjectileSource to choose a friendly name when a block is the source of a projectile
- Added util method to try to suggest an appropriate item as the "weapon" in a projectile kill

Closes #442
Fixes #470 Fixes #471
2015-03-08 18:50:34 +00:00
Thundaklap 6b4be88181 Fixed bow kills not being traceable 2015-03-08 16:49:10 +00:00
Philip Cass 9d344b9401 Merge pull request #581 from frymaster/merge-rows
Batch execution code and consumer timing optimising - massive DB insertion speedup
2015-03-02 20:30:16 +00:00
Philip Cass 6a38708a32 Merge identically-formed db INSERT rows into a single batch statement
This increases insert speed by up to 6 times when the DB server is on the same
box as the minecraft server, and many HUNDREDS of times when it is accessed via
a network connection.

This creates a new kind of BlockRow which is a collection of many similar rows, each
of which uses the same PreparedStatement.  As such, when asked to run, it can
use the executeBatch() method.  It also adds code to BlockRow to see if they are mergeable
(it won't if they have sign or chest actions associated) and to merge two rows into one of
these new objects.  The consumer processing loop is altered to check for merges, and do so if
possible.

Also, prevent consumer race condition on shutdown

On shutdown, LogBlock invokes the consumer's run() method up to twn times on
the main thread.  However, the consumer may still be running from the last
scheduled task, and this could result in two threads running the run() code
simultaneously, resulting in inconsistent row insertion order.

Another scenario is that the consumer has just started processing the last
row in the queue.  With the queue empty, the server will terminate, but the
consumer could still not have fully executed the databse query.

To solve this, the run() method is syncronized, so it can only be run on the
object by one thread at a time, and is made to run at least once (to force LB
to wait on any already processing run)

Also, the pause between consumer runs was altered to be in ticks (50ms) rather than
in seconds, to prevent needless pauses between runs.

Fixes #580 Fixes #56
2015-03-02 20:12:49 +00:00
Philip Cass 143bcf6d76 Add missing index on playername column 2015-02-28 12:12:27 +00:00