Merge pull request #176 from Crypnotic/master

Add matchPlayer and matchServer
This commit is contained in:
Andrew Steinborn
2019-03-09 00:15:07 -05:00
committed by GitHub
2 changed files with 47 additions and 0 deletions

View File

@@ -76,6 +76,22 @@ public interface ProxyServer {
*/
Collection<RegisteredServer> getAllServers();
/**
* Matches all {@link Player}s whose names start with the provided partial name.
*
* @param partialName the partial name to check for
* @return a collection of mathed {@link Player}s
*/
Collection<Player> matchPlayer(String partialName);
/**
* Matches all {@link RegisteredServer}s whose names start with the provided partial name.
*
* @param partialName the partial name to check for
* @return a collection of mathed {@link RegisteredServer}s
*/
Collection<RegisteredServer> matchServer(String partialName);
/**
* Registers a server with this proxy. A server with this name should not already exist.
*