Add matchPlayer and matchServer

This commit is contained in:
Crypnotic
2019-03-02 13:25:37 -06:00
parent c8e3e7ff94
commit b35fd05d2e
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.
*