Fix dumplisteners missing folder creation
This commit is contained in:
		
					parent
					
						
							
								c57f86c7ab
							
						
					
				
			
			
				commit
				
					
						ec00900b8b
					
				
			
		
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue