mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 14:03:02 +08:00
Add debug subcommand for listing completed dungeons
This commit is contained in:
parent
e524926ae0
commit
eba6c5051c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user