Commit Graph
12 Commits
Author SHA1 Message Date
Brokkonaut 0a7ea8e747 Treat CAVE_AIR and VOID_AIR the same as AIR 2018-07-29 15:37:28 +02:00
Brokkonaut ea87835595 Update to WorldEdit for 1.13 2018-07-29 15:37:28 +02:00
Brokkonaut ce30d33824 Update to 1.13 / Logging/Rollbacks work but largely untested
Still missing: Import data from 1.12 and older
2018-07-29 15:37:28 +02: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 d48d042279 Directly use the UUID of the player responsible for event, if possible
Directly get the Bukkit World object of the event, if possible
Move Worldedit World -> Bukkit World conversion to a separate method
2015-02-22 14:55:58 +00:00
Philip Cass ed5e40f469 Merge branch 'worldedit-6.0.0' of https://github.com/DarkArc/LogBlock into DarkArc-worldedit-6.0.0
Conflicts:
	src/main/java/de/diddiz/LogBlock/LogBlock.java
	src/main/java/de/diddiz/LogBlock/listeners/ExplosionLogging.java
	src/main/java/de/diddiz/worldedit/LogBlockEditSession.java

Update Worldedit 6.0 hook to support UUIDs
2015-02-17 20:25:02 +00:00
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
Dark Arc fa1e1b777a Updated for WorldEdit 6.0 2014-09-01 23:19:57 -04:00
Ammar Askar 9326c54dab Log data for blocks from worldedit properly. Fixes #329 2013-01-20 12:34:13 +05:00
Ammar Askar 5d0c3216c2 WorldEdit restored to soft dependency instead of dependency 2013-01-12 16:02:33 +05:00
Ammar Askar e361c39937 Added WorldEdit logging 2013-01-12 12:37:45 +05:00
Ammar Askar 92d68be1c0 sketch out template for incoming world edit logging 2012-10-31 21:36:16 +05:00