feat: show IP in ListCommand

This commit is contained in:
ChomeNS
2025-04-08 17:07:34 +07:00
parent 93f582bba0
commit dffc22674b
2 changed files with 11 additions and 1 deletions

View File

@@ -1 +1 @@
2472
2474

View File

@@ -46,6 +46,7 @@ public class ListCommand extends Command {
// Vanished: false
// Latency: 32
// Game Mode: CREATIVE
// IP Address: 127.0.0.1
//
// Click to copy the username to your clipboard
// Shift+Click to insert the UUID into your chat box
@@ -102,6 +103,15 @@ public class ListCommand extends Command {
).color(bot.colorPalette.secondary)
)
.append(Component.newline())
.append(
Component.translatable(
"IP Address: %s",
Component
.text(entry.ip == null ? "N/A" : entry.ip)
.color(bot.colorPalette.string)
).color(bot.colorPalette.secondary)
)
.append(Component.newline())
.append(Component.newline())
.append(Component.text("Click to copy the username to your clipboard").color(NamedTextColor.GREEN))
.append(Component.newline())