ProxyServer#getServerInfo -> ProxyServer#getServer

This commit is contained in:
Andrew Steinborn
2018-09-16 13:16:16 -04:00
parent e1b2dc0d43
commit 1f8152c3a5
3 changed files with 3 additions and 3 deletions

View File

@@ -264,7 +264,7 @@ public class VelocityServer implements ProxyServer {
}
@Override
public Optional<RegisteredServer> getServerInfo(String name) {
public Optional<RegisteredServer> getServer(String name) {
Preconditions.checkNotNull(name, "name");
return servers.getServer(name);
}

View File

@@ -35,7 +35,7 @@ public class ServerCommand implements Command {
if (args.length == 1) {
// Trying to connect to a server.
String serverName = args[0];
Optional<RegisteredServer> toConnect = server.getServerInfo(serverName);
Optional<RegisteredServer> toConnect = server.getServer(serverName);
if (!toConnect.isPresent()) {
player.sendMessage(TextComponent.of("Server " + serverName + " doesn't exist.", TextColor.RED));
return;