Collection<String> queriedNames = checkcommand.getQueriedNames();
String who = queriedNames.iterator().next(); // We know, we queried exactly one character.
Collection<String> validNames = checkcommand.getValidNames();
if (validNames.isEmpty()) {
player.sendPrivateText(NotificationType.ERROR, "Sorry, " + who + " could not be found.");
return;
}
// get the canonical name
who = validNames.iterator().next();