forked from LogBlock/LogBlock
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.
100 lines
2.9 KiB
XML
100 lines
2.9 KiB
XML
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>de.diddiz</groupId>
|
|
<artifactId>logblock</artifactId>
|
|
<version>dev-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>LogBlock</name>
|
|
<description>Logs blocks.</description>
|
|
<url>https://github.com/LogBlock/LogBlock</url>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<build.number>Unknown</build.number>
|
|
</properties>
|
|
|
|
<scm>
|
|
<connection>scm:git:git://github.com/LogBlock/LogBlock.git</connection>
|
|
<developerConnection>scm:git:ssh://git@github.com:LogBlock/LogBlock.git</developerConnection>
|
|
<url>https://github.com/LogBlock/LogBlock</url>
|
|
</scm>
|
|
|
|
<ciManagement>
|
|
<system>jenkins</system>
|
|
<url>http://ci.kitteh.org/job/LogBlock</url>
|
|
</ciManagement>
|
|
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>md_5-releases</id>
|
|
<url>http://repo.md-5.net/content/repositories/releases/</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>md_5-snapshots</id>
|
|
<url>http://repo.md-5.net/content/repositories/snapshots/</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.bukkit</groupId>
|
|
<artifactId>bukkit</artifactId>
|
|
<version>1.7.2-R0.1-SNAPSHOT</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>questioner</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>system</scope>
|
|
<systemPath>${project.basedir}/LogBlockQuestioner.jar</systemPath>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.sk89q</groupId>
|
|
<artifactId>worldedit</artifactId>
|
|
<version>5.5</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>repobo-snap</id>
|
|
<url>http://repo.bukkit.org/content/groups/public</url>
|
|
</repository>
|
|
<repository>
|
|
<id>sk89q-repo</id>
|
|
<url>http://maven.sk89q.com/repo/</url>
|
|
</repository>
|
|
<repository>
|
|
<id>kitteh-repo</id>
|
|
<url>http://repo.kitteh.org/content/groups/public</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<build>
|
|
<finalName>${project.name}</finalName>
|
|
<resources>
|
|
<resource>
|
|
<filtering>true</filtering>
|
|
<directory>${project.basedir}/src/main/resources</directory>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>2.5.1</version>
|
|
<configuration>
|
|
<source>1.6</source>
|
|
<target>1.6</target>
|
|
<excludes>
|
|
<exclude>**/de/diddiz/worldedit/*.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|