feat: show IP in ListCommand
This commit is contained in:
@@ -1 +1 @@
|
||||
2472
|
||||
2474
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user