3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00
Dieser Commit ist enthalten in:
Andrew Steinborn 2018-08-26 19:44:15 -04:00
Ursprung 79f4abcf90
Commit d482dc7f4f

Datei anzeigen

@ -36,8 +36,8 @@ public class ServerCommand implements Command {
player.createConnectionRequest(server.get()).fireAndForget();
} else {
String currentServer = ((Player) source).getCurrentServer().map(ServerConnection::getServerInfo)
.map(ServerInfo::getName).orElse("<unknown>");
String currentServer = player.getCurrentServer().map(ServerConnection::getServerInfo).map(ServerInfo::getName)
.orElse("<unknown>");
player.sendMessage(TextComponent.of("You are currently connected to " + currentServer + ".", TextColor.YELLOW));
// Assemble the list of servers as components