* Completes handling the buddy action.
*
* @param currentTurn ignored
*/
public void onTurnReached(int currentTurn) {
QueryCanonicalCharacterNamesCommand checkcommand = DBCommandQueue.get().getOneResult(QueryCanonicalCharacterNamesCommand.class, handle);
if (checkcommand == null) {
TurnNotifier.get().notifyInTurns(0, new TurnListenerDecorator(this));
return;
}
Player player = checkcommand.getPlayer();
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;
}