Add method to get a connected player via their UUID

This commit is contained in:
Keir Nellyer
2014-04-09 20:25:15 +01:00
committed by md_5
parent 18316eb5f8
commit a642346a2c
2 changed files with 29 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import java.io.File;
import java.net.InetSocketAddress;
import java.util.Collection;
import java.util.Map;
import java.util.UUID;
import java.util.logging.Logger;
import lombok.Getter;
import net.md_5.bungee.api.config.ConfigurationAdapter;
@@ -79,6 +80,14 @@ public abstract class ProxyServer
*/
public abstract ProxiedPlayer getPlayer(String name);
/**
* Gets a connected player via their UUID
*
* @param uuid of the player
* @return their player instance
*/
public abstract ProxiedPlayer getPlayer(UUID uuid);
/**
* Return all servers registered to this proxy, keyed by name. Unlike the
* methods in {@link ConfigurationAdapter#getServers()}, this will not