93468b53b3
This is achieved by injecting the NetLoginHandler when it's added to the DedicatedServerConnectionThread's list of current login handlers. PacketEvents during this phase uses "fake" Player objects that only support a subset of methods. Consumers can expect the following methods to be functional: * getPlayer() * getAddress() * getServer() * chat(String) * sendMessage(String) * sendMessage(String[]) * kickPlayer(String) A "fake" Player object can be converted to its real counterpart by calling getPlayer().
167 Zeilen
5.0 KiB
XML
167 Zeilen
5.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>com.comphenix.protocol</groupId>
|
|
<artifactId>ProtocolLib</artifactId>
|
|
<name>ProtocolLib</name>
|
|
<version>1.3.3-SNAPSHOT</version>
|
|
<description>Provides read/write access to the Minecraft protocol.</description>
|
|
<url>http://dev.bukkit.org/server-mods/protocollib/</url>
|
|
<developers>
|
|
<developer>
|
|
<id>aadnk</id>
|
|
<name>Kristian S. Stangeland</name>
|
|
<email>kr_stang@hotmail.com</email>
|
|
<url>http://comphenix.net/</url>
|
|
<roles>
|
|
<role>developer</role>
|
|
<role>maintainer</role>
|
|
</roles>
|
|
<timezone>1</timezone>
|
|
</developer>
|
|
</developers>
|
|
<licenses>
|
|
<license>
|
|
<name>GNU GENERAL PUBLIC LICENSE - Version 2, June 1991</name>
|
|
<url>http://www.gnu.org/licenses/gpl-2.0.txt</url>
|
|
<distribution>repo</distribution>
|
|
</license>
|
|
</licenses>
|
|
<scm>
|
|
<connection>scm:git:git://github.com/aadnk/ProtocolLib.git</connection>
|
|
<developerConnection>scm:git:git@github.com:aadnk/ProtocolLib.git</developerConnection>
|
|
<url>https://github.com/aadnk/ProtocolLib</url>
|
|
</scm>
|
|
<build>
|
|
<sourceDirectory>src/main/java</sourceDirectory>
|
|
<testSourceDirectory>src/test/java</testSourceDirectory>
|
|
<defaultGoal>clean install</defaultGoal>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/java</directory>
|
|
<excludes>
|
|
<exclude>**/*.java</exclude>
|
|
</excludes>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>2.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactSet>
|
|
<excludes>
|
|
<exclude>org.bukkit:craftbukkit</exclude>
|
|
<exclude>junit:junit</exclude>
|
|
</excludes>
|
|
</artifactSet>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>2.3.2</version>
|
|
<configuration>
|
|
<source>1.6</source>
|
|
<target>1.6</target>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<profile>
|
|
<id>release-sign-artifacts</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>2.2</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-sources</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.9</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-javadocs</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
<version>1.4</version>
|
|
<executions>
|
|
<execution>
|
|
<id>sign-artifacts</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>sign</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
<repositories>
|
|
<repository>
|
|
<id>bukkit-rep</id>
|
|
<url>http://repo.bukkit.org/content/groups/public</url>
|
|
</repository>
|
|
</repositories>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.bukkit</groupId>
|
|
<artifactId>craftbukkit</artifactId>
|
|
<version>1.3.2-R1.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.10</version>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>hamcrest-core</artifactId>
|
|
<groupId>org.hamcrest</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
</dependencies>
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>comphenix-releases</id>
|
|
<name>Comphenix Maven Releases</name>
|
|
<url>http://repo.comphenix.net/content/repositories/releases/</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>comphenix-snapshots</id>
|
|
<name>Comphenix Maven Snapshots</name>
|
|
<url>http://repo.comphenix.net/content/repositories/snapshots/</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
<properties>
|
|
<project.build.sourceEncoding>cp1252</project.build.sourceEncoding>
|
|
</properties>
|
|
</project>
|
|
|