This commit is contained in:
Jesse Boyd 2017-07-11 20:09:52 +10:00
parent f20a1002bb
commit a79003f2a3
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 4 additions and 2 deletions

View File

@ -23,6 +23,7 @@ public enum BBC {
* Can use multiple arguments %s, %s1, %s2, %s3 etc * Can use multiple arguments %s, %s1, %s2, %s3 etc
*/ */
PREFIX("&8(&4&lFAWE&8)&r&7", "Info"), 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"), 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"), 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"), UPDATED_LIGHTING_SELECTION("&7Lighting has been updated in %s0 chunks. (It may take a second for the packets to send)", "Info"),

View File

@ -906,8 +906,8 @@ public class MainUtil {
public void run(File file) { public void run(File file) {
long age = now - file.lastModified(); long age = now - file.lastModified();
if (age > timeDiff) { if (age > timeDiff) {
Fawe.debug("Deleting file: " + file);
file.delete(); file.delete();
BBC.SCHEMATIC_DELETE.send(null, file);
} }
} }
}); });
@ -922,7 +922,8 @@ public class MainUtil {
if (file.isDirectory()) { if (file.isDirectory()) {
deleteDirectory(files[i]); deleteDirectory(files[i]);
} else { } else {
Fawe.debug("Deleting file: " + file + " | " + file.delete()); file.delete();
BBC.SCHEMATIC_DELETE.send(null, file);
} }
} }
} }