Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Clean this up
Dieser Commit ist enthalten in:
Ursprung
79f4abcf90
Commit
d482dc7f4f
@ -36,8 +36,8 @@ public class ServerCommand implements Command {
|
|||||||
|
|
||||||
player.createConnectionRequest(server.get()).fireAndForget();
|
player.createConnectionRequest(server.get()).fireAndForget();
|
||||||
} else {
|
} else {
|
||||||
String currentServer = ((Player) source).getCurrentServer().map(ServerConnection::getServerInfo)
|
String currentServer = player.getCurrentServer().map(ServerConnection::getServerInfo).map(ServerInfo::getName)
|
||||||
.map(ServerInfo::getName).orElse("<unknown>");
|
.orElse("<unknown>");
|
||||||
player.sendMessage(TextComponent.of("You are currently connected to " + currentServer + ".", TextColor.YELLOW));
|
player.sendMessage(TextComponent.of("You are currently connected to " + currentServer + ".", TextColor.YELLOW));
|
||||||
|
|
||||||
// Assemble the list of servers as components
|
// Assemble the list of servers as components
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren