Add debug subcommand for listing completed dungeons

This commit is contained in:
KingRainbow44 2023-05-01 01:09:15 -04:00
parent e524926ae0
commit eba6c5051c
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -88,6 +88,12 @@ public final class QuestCommand implements CommandHandler {
translate(sender, "commands.quest.state.exists"),
mainQuest.getParentQuestId(), mainQuest.getState().getValue()));
}
case "dungeons" -> {
var dungeons = targetPlayer.getPlayerProgress().getCompletedDungeons();
CommandHandler.sendMessage(sender, "Dungeons completed: " +
String.join(", ", dungeons.intStream()
.mapToObj(String::valueOf).toList()));
}
default -> this.sendUsageMessage(sender);
}
}