File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/lol/hyper/anarchystats Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11package lol .hyper .anarchystats ;
22
3- import java .io .File ;
3+ import org .bukkit .Bukkit ;
4+
45import java .io .IOException ;
56import java .nio .file .*;
67import java .nio .file .attribute .BasicFileAttributes ;
@@ -37,7 +38,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
3738 @ Override
3839 public FileVisitResult visitFileFailed (Path file , IOException exc ) {
3940
40- System . out . println ( "skipped: " + file + " (" + exc + ")" );
41+ Bukkit . getLogger (). warning ( "File " + file + " doesn't exist. (" + exc + ")" );
4142 // Skip folders that can't be traversed
4243 return FileVisitResult .CONTINUE ;
4344 }
@@ -46,7 +47,7 @@ public FileVisitResult visitFileFailed(Path file, IOException exc) {
4647 public FileVisitResult postVisitDirectory (Path dir , IOException exc ) {
4748
4849 if (exc != null )
49- System . out . println ( "had trouble traversing: " + dir + " (" + exc + ")" );
50+ Bukkit . getLogger (). warning ( "Had trouble traversing: " + dir + " (" + exc + ")" );
5051 // Ignore errors traversing a folder
5152 return FileVisitResult .CONTINUE ;
5253 }
You can’t perform that action at this time.
0 commit comments