Cleanup permissions and disconnect sequences

This commit is contained in:
md_5
2013-03-07 21:04:03 +11:00
parent 0f9cc76633
commit b6e76f4054
4 changed files with 104 additions and 84 deletions

View File

@@ -16,4 +16,14 @@ public interface Connection
* @return the remote address
*/
public InetSocketAddress getAddress();
/**
* Disconnects this end of the connection for the specified reason. If this
* is an {@link ProxiedPlayer} the respective server connection will be
* closed too.
*
* @param reason the reason shown to the player / sent to the server on
* disconnect
*/
public void disconnect(String reason);
}