From a4c981436e96dfce0c60195957c4c76a3d797df3 Mon Sep 17 00:00:00 2001 From: onebeastchris Date: Tue, 9 Jul 2024 20:43:19 +0200 Subject: [PATCH] Address review --- .../org/geysermc/discordbot/commands/PingCommand.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/geysermc/discordbot/commands/PingCommand.java b/src/main/java/org/geysermc/discordbot/commands/PingCommand.java index 9de3528c..45af7849 100644 --- a/src/main/java/org/geysermc/discordbot/commands/PingCommand.java +++ b/src/main/java/org/geysermc/discordbot/commands/PingCommand.java @@ -45,10 +45,8 @@ import java.io.IOException; import java.net.InetSocketAddress; -import java.time.Instant; import java.util.ArrayList; import java.util.Arrays; -import java.util.Collections; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; @@ -172,9 +170,9 @@ private MessageEmbed handle(String ip, Integer port) { } return new EmbedBuilder() - .setTitle("Pinging server " + ip + (port != null ? " - " + port : "")) - .addField("Java", javaInfo, false) - .addField("Bedrock", bedrockInfo, false) + .setTitle("Pinging server " + ip) + .addField("Java (" + jePort + ")", javaInfo, false) + .addField("Bedrock (" + bePort + ")", bedrockInfo, false) .setColor(success ? BotColors.SUCCESS.getColor() : BotColors.FAILURE.getColor()) .build(); }