Commit Graph
15 Commits
Author SHA1 Message Date
Philip Cass e3dc430931 Identify players by UUID and migrate existing databases to include this. Fixes #538, fixes #568
This creates a new column in the lb-players table called UUID. If this is in the form of a UUID,
it's assumed to be a player. If not, it's assumed to be a server entity (zombie, sheep, or
WaterFlow, LavaFlow etc.). LogBlock will set the UUID of entities to "log_" plus their name
(i.e. log_zombie or log_sheep)

To assist this is a new class Actor, which wraps a name/UUID pair, with constructors that will
generate one from server entities, or SQL results. Every listener and every class in Consumer
needed to be updated to deal with this

As of yet, only the playername is displayed in results (although the queries do return UUID data).
Similarly, you can only query by name (the database stores the last name they have logged in as).
In addition, the WorldEdit hook has been disabled (is not compiled) since LB needs to be updated
to use their new API, and the LB code hook has to extract UUID information for insertion.

The UUID importer assumes any player with an onlinetime of 0 is a server-generated source, and set
the UUID as above (log_sheep etc.).  For everything else, it sends 100 names at a time to Mojang's
name->UUID service, and records them if available.  If no result is found, it records their UUID as
noimport_theirname.  As this is more likely than other updates to be interrupted mid-way, the
importer is tolerant of e.g. the column already being added, and will resume where it left off.
2015-02-14 14:01:21 +00:00
Philip Cass 0d5607be43 Update PR for new version number 2013-12-05 08:42:20 +00:00
md-5 28b4c2f60c Bump to release 1.80 2013-12-05 13:26:03 +11: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 045de2b1c5 Update to 1.70 for release 2013-01-20 19:30:34 +11:00
Ammar Askar 5d0c3216c2 WorldEdit restored to soft dependency instead of dependency 2013-01-12 16:02:33 +05:00
md_5 d21633c14f Update to 1.61 2012-12-23 17:05:21 +11:00
md-5 4d7ca57ca9 Fix plugin.yml 2012-09-23 20:56:34 +10:00
md-5 705a6fcf2e Update plugin.yml in preparation for new release 2012-09-23 19:42:36 +10:00
md-5 2671e015a8 Fix * permission 2012-09-21 17:50:48 +10:00
md_5 823ae35a85 1.57 updates are optional 2012-08-11 15:15:57 +10:00
md_5 e3aa14582b Increase default table sizes and default to OP. 2012-08-09 18:56:46 +10:00
md_5 0290305b23 Bump to 1.56 and invert container ordering 2012-08-05 14:49:01 +10:00
md_5 6d4a46bcde Use async player chat, upgrade to 1.55, and disable lookup permission by default. 2012-08-05 09:08:00 +10:00
md_5 61e9643b90 Mavenize this project so we can use Jenkins and easily enable developers to compile from source. 2012-07-28 14:52:38 +10:00