Start a hugely messy implementation of the API

This commit is contained in:
md_5
2013-01-16 11:16:21 +11:00
parent 8c942e299f
commit 098ca5920e
30 changed files with 275 additions and 690 deletions

View File

@@ -97,4 +97,14 @@ public abstract class ProxyServer
* @param adapter the adapter to use
*/
public abstract void setConfigurationAdapter(ConfigurationAdapter adapter);
/**
* Gracefully mark this instance for shutdown.
*/
public abstract void stop();
/**
* Start this instance so that it may accept connections.
*/
public abstract void start();
}

View File

@@ -27,6 +27,13 @@ public abstract class ProxiedPlayer implements Connection, CommandSender
*/
public abstract void connect(Server server);
/**
* Gets the server this player is connected to.
*
* @return the server this player is connected to
*/
public abstract Server getServer();
/**
* Gets the ping time between the proxy and this connection.
*

View File

@@ -17,6 +17,16 @@ public abstract class Command
private final String permission;
private final String[] aliases;
/**
* Construct a new command with no permissions or aliases.
*
* @param name the name of this command
*/
public Command(String name)
{
this(name, null);
}
/**
* Construct a new command.
*