Skip to content

Commit 60d43a3

Browse files
committed
add ip in list advance
1 parent 00c7f94 commit 60d43a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/io/github/optijava/opt_carpet_addition/commands/ListAdvanceCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private static int listAdvance(CommandContext<ServerCommandSource> context) {
2424
MinecraftServer minecraftServer = context.getSource().getServer();
2525
StringBuilder sb = new StringBuilder();
2626
for (ServerPlayerEntity s : minecraftServer.getPlayerManager().getPlayerList()) {
27-
sb.append(s.getGameProfile().getName()).append(" ").append(s.interactionManager.getGameMode().getName()).append(" ").append(s.pingMilliseconds).append("ms ").append(s.getGameProfile().getId().toString()).append("\n");
27+
sb.append(s.getGameProfile().getName()).append(" ").append(s.interactionManager.getGameMode().getName()).append(" ").append(s.pingMilliseconds).append("ms ").append(s.getIp()).append(" ").append(s.getGameProfile().getId().toString()).append("\n");
2828
}
2929
OptCarpetAddition.LOGGER.info(sb.toString());
3030
context.getSource().sendFeedback(new LiteralText(sb.toString()), false);

0 commit comments

Comments
 (0)