diff --git a/core/src/main/java/com/boydti/fawe/config/BBC.java b/core/src/main/java/com/boydti/fawe/config/BBC.java index ec5109e8..3165f4a2 100644 --- a/core/src/main/java/com/boydti/fawe/config/BBC.java +++ b/core/src/main/java/com/boydti/fawe/config/BBC.java @@ -23,6 +23,7 @@ public enum BBC { * Can use multiple arguments %s, %s1, %s2, %s3 etc */ PREFIX("&8(&4&lFAWE&8)&r&7", "Info"), + FILE_DELETED("%s0 has been deleted.", "Info"), SCHEMATIC_PASTING("&7The schematic is pasting. This cannot be undone.", "Info"), LIGHTING_PROPOGATE_SELECTION("&7Lighting has been propogated in %s0 chunks. (Note: To remove light use //removelight)", "Info"), UPDATED_LIGHTING_SELECTION("&7Lighting has been updated in %s0 chunks. (It may take a second for the packets to send)", "Info"), diff --git a/core/src/main/java/com/boydti/fawe/util/MainUtil.java b/core/src/main/java/com/boydti/fawe/util/MainUtil.java index f63e8cc9..5dc251bb 100644 --- a/core/src/main/java/com/boydti/fawe/util/MainUtil.java +++ b/core/src/main/java/com/boydti/fawe/util/MainUtil.java @@ -906,8 +906,8 @@ public class MainUtil { public void run(File file) { long age = now - file.lastModified(); if (age > timeDiff) { - Fawe.debug("Deleting file: " + file); file.delete(); + BBC.SCHEMATIC_DELETE.send(null, file); } } }); @@ -922,7 +922,8 @@ public class MainUtil { if (file.isDirectory()) { deleteDirectory(files[i]); } else { - Fawe.debug("Deleting file: " + file + " | " + file.delete()); + file.delete(); + BBC.SCHEMATIC_DELETE.send(null, file); } } }