Skip to content

Commit 496dffb

Browse files
committed
use proper bukkit logging
1 parent 92da253 commit 496dffb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/lol/hyper/anarchystats/WorldSize.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package lol.hyper.anarchystats;
22

3+
import org.bukkit.Bukkit;
4+
35
import java.io.IOException;
46
import java.nio.file.*;
57
import java.nio.file.attribute.BasicFileAttributes;
@@ -32,15 +34,15 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
3234

3335
@Override
3436
public FileVisitResult visitFileFailed(Path file, IOException exc) {
35-
System.out.println("skipped: " + file + " (" + exc + ")");
37+
Bukkit.getLogger().warning("skipped: " + file + " (" + exc + ")");
3638
// Skip folders that can't be traversed
3739
return FileVisitResult.CONTINUE;
3840
}
3941

4042
@Override
4143
public FileVisitResult postVisitDirectory(Path dir, IOException exc) {
4244
if (exc != null)
43-
System.out.println("had trouble traversing: " + dir + " (" + exc + ")");
45+
Bukkit.getLogger().warning("had trouble traversing: " + dir + " (" + exc + ")");
4446
// Ignore errors traversing a folder
4547
return FileVisitResult.CONTINUE;
4648
}

0 commit comments

Comments
 (0)