diff --git a/src/main/java/emu/grasscutter/command/commands/QuestCommand.java b/src/main/java/emu/grasscutter/command/commands/QuestCommand.java index c97c406ec..eb2074082 100644 --- a/src/main/java/emu/grasscutter/command/commands/QuestCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/QuestCommand.java @@ -94,6 +94,16 @@ public final class QuestCommand implements CommandHandler { String.join(", ", dungeons.intStream() .mapToObj(String::valueOf).toList())); } + case "debug" -> { + var loggedQuests = targetPlayer.getQuestManager().getLoggedQuests(); + var shouldAdd = !loggedQuests.contains(questId); + + if (shouldAdd) loggedQuests.add(questId); + else loggedQuests.removeInt(questId); + + CommandHandler.sendMessage(sender, "Quest %s will %s." + .formatted(questId, shouldAdd ? "now be logged" : "no longer be logged")); + } default -> this.sendUsageMessage(sender); } }