Commit c0b7859f authored by coooookies's avatar coooookies
Browse files

List command should show player uid

parent eac9c04e
......@@ -19,8 +19,19 @@ public final class ListCommand implements CommandHandler {
if (playersMap.size() != 0) {
StringBuilder playerSet = new StringBuilder();
playersMap.values().forEach(player ->
playerSet.append(player.getNickname()).append(", "));
playersMap.values().forEach(player -> {
playerSet.append(player.getNickname());
if (sender != null) {
playerSet.append("<color=green><UID:")
.append(player.getUid())
.append("></color>, ");
} else {
playerSet.append("<UID:")
.append(player.getUid())
.append(">, ");
}
});
String players = playerSet.toString();
CommandHandler.sendMessage(sender, players.substring(0, players.length() - 2));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment