From ec00900b8b35f74e31fce1ffb758ffee3d649f22 Mon Sep 17 00:00:00 2001
From: Shane Freeder <theboyetronic@gmail.com>
Date: Tue, 6 Dec 2022 04:02:44 +0000
Subject: [PATCH] Fix dumplisteners missing folder creation

---
 patches/server/Add-paper-dumplisteners-command.patch | 1 +
 1 file changed, 1 insertion(+)

diff --git a/patches/server/Add-paper-dumplisteners-command.patch b/patches/server/Add-paper-dumplisteners-command.patch
index 5bb19f5cdb..85f8f25c0b 100644
--- a/patches/server/Add-paper-dumplisteners-command.patch
+++ b/patches/server/Add-paper-dumplisteners-command.patch
@@ -93,6 +93,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
 +    private void dumpToFile(final CommandSender sender) {
 +        final File file = new File("debug/listeners-"
 +            + DateTimeFormatter.ofPattern("yyyy-MM-dd_HH.mm.ss").format(LocalDateTime.now()) + ".txt");
++        file.getParentFile().mkdirs();
 +        try (final PrintWriter writer = new PrintWriter(file)) {
 +            for (final String eventClass : eventClassNames()) {
 +                final HandlerList handlers;