Add plugin prefix
This commit is contained in:
parent
14d264e84a
commit
780f95c09f
@ -44,9 +44,9 @@ public class AutomaticLogDeleter extends JavaPlugin {
|
|||||||
if ((System.currentTimeMillis() - file.lastModified()) > maxOldMillis) {
|
if ((System.currentTimeMillis() - file.lastModified()) > maxOldMillis) {
|
||||||
|
|
||||||
if (!file.delete()) {
|
if (!file.delete()) {
|
||||||
Bukkit.getLogger().log(Level.WARNING, "Failed to delete server log file! Are you sure the file permissions are correct?");
|
Bukkit.getLogger().log(Level.WARNING, "[AutomaticLogDeleter] Failed to delete server log file! Are you sure the file permissions are correct?");
|
||||||
} else {
|
} else {
|
||||||
Bukkit.getLogger().log(Level.INFO, "Deleted log file " + file.getName());
|
Bukkit.getLogger().log(Level.INFO, "[AutomaticLogDeleter] Deleted log file " + file.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user