diff --git a/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java b/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java index 452caeec3..1ec9130a0 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java @@ -120,6 +120,8 @@ public class EssentialsUpgrade { throw new Exception("Failed to rename temp file to config.yml"); } + } else { + tempFile.delete(); } }