Fixes #640
This commit is contained in:
parent
f20a1002bb
commit
a79003f2a3
@ -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"),
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user