13
0
geforkt von Mirrors/Paper

Fix dumplisteners missing folder creation

Dieser Commit ist enthalten in:
Shane Freeder 2022-12-06 04:02:44 +00:00
Ursprung c57f86c7ab
Commit ec00900b8b

Datei anzeigen

@ -93,6 +93,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ private void dumpToFile(final CommandSender sender) { + private void dumpToFile(final CommandSender sender) {
+ final File file = new File("debug/listeners-" + final File file = new File("debug/listeners-"
+ + DateTimeFormatter.ofPattern("yyyy-MM-dd_HH.mm.ss").format(LocalDateTime.now()) + ".txt"); + + DateTimeFormatter.ofPattern("yyyy-MM-dd_HH.mm.ss").format(LocalDateTime.now()) + ".txt");
+ file.getParentFile().mkdirs();
+ try (final PrintWriter writer = new PrintWriter(file)) { + try (final PrintWriter writer = new PrintWriter(file)) {
+ for (final String eventClass : eventClassNames()) { + for (final String eventClass : eventClassNames()) {
+ final HandlerList handlers; + final HandlerList handlers;