diff --git a/src/me/ryanhamshire/GriefPrevention/DatabaseDataStore.java b/src/me/ryanhamshire/GriefPrevention/DatabaseDataStore.java index 2f4fb4b..bc51381 100644 --- a/src/me/ryanhamshire/GriefPrevention/DatabaseDataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/DatabaseDataStore.java @@ -257,7 +257,7 @@ public class DatabaseDataStore extends DataStore { if(e.getMessage().contains("World not found")) { - GriefPrevention.AddLogEntry("Failed to load a claim because its world isn't loaded (yet?). Please delete the claim or contact the GriefPrevention developer with information about which plugin(s) you're using to load or create worlds."); + GriefPrevention.AddLogEntry("Failed to load a claim because its world isn't loaded (yet?). Please delete the claim or contact the GriefPrevention developer with information about which plugin(s) you're using to load or create worlds. " + lesserCornerString); continue; } else diff --git a/src/me/ryanhamshire/GriefPrevention/FlatFileDataStore.java b/src/me/ryanhamshire/GriefPrevention/FlatFileDataStore.java index 192c409..2cabaae 100644 --- a/src/me/ryanhamshire/GriefPrevention/FlatFileDataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/FlatFileDataStore.java @@ -237,6 +237,7 @@ public class FlatFileDataStore extends DataStore } BufferedReader inStream = null; + String lesserCornerString = ""; try { Claim topLevelClaim = null; @@ -260,7 +261,8 @@ public class FlatFileDataStore extends DataStore } //first line is lesser boundary corner location - Location lesserBoundaryCorner = this.locationFromString(line, validWorlds); + lesserCornerString = line; + Location lesserBoundaryCorner = this.locationFromString(lesserCornerString, validWorlds); //second line is greater boundary corner location line = inStream.readLine(); @@ -359,8 +361,9 @@ public class FlatFileDataStore extends DataStore { if(e.getMessage().contains("World not found")) { + GriefPrevention.AddLogEntry("Failed to load a claim because its world isn't loaded (yet?). Please delete the claim or contact the GriefPrevention developer with information about which plugin(s) you're using to load or create worlds. " + lesserCornerString); inStream.close(); - files[i].delete(); + } else {