Add stub api class.

This commit is contained in:
md_5
2013-01-10 17:56:09 +11:00
parent 0354ce3588
commit 162f75423d
5 changed files with 101 additions and 64 deletions

28
api/pom.xml Normal file
View File

@@ -0,0 +1,28 @@
<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>
<parent>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>BungeeCord-API</name>
<description>API implemented by the Elastic Portal Suite</description>
<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>13.0.1</version>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,16 @@
package net.md_5.bungee.api;
import com.google.common.base.Preconditions;
import lombok.Getter;
public abstract class ProxyServer {
@Getter
private static ProxyServer instance;
public static void setInstance(ProxyServer instance) {
Preconditions.checkNotNull(instance, "Instance null");
Preconditions.checkArgument(instance == null, "Instance already set");
ProxyServer.instance = instance;
}
}