diff --git a/src/me/ryanhamshire/GriefPrevention/DatabaseDataStore.java b/src/me/ryanhamshire/GriefPrevention/DatabaseDataStore.java index bc51381..dfa8748 100644 --- a/src/me/ryanhamshire/GriefPrevention/DatabaseDataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/DatabaseDataStore.java @@ -232,6 +232,7 @@ public class DatabaseDataStore extends DataStore ArrayList subdivisionsToLoad = new ArrayList(); List validWorlds = Bukkit.getServer().getWorlds(); + Long claimID = null; while(results.next()) { try @@ -240,7 +241,7 @@ public class DatabaseDataStore extends DataStore boolean removeClaim = false; long parentId = results.getLong("parentid"); - long claimID = results.getLong("id"); + claimID = results.getLong("id"); Location lesserBoundaryCorner = null; Location greaterBoundaryCorner = null; @@ -257,7 +258,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. " + lesserCornerString); + GriefPrevention.AddLogEntry("Failed to load a claim (ID:" + claimID.toString() + ") 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 2cabaae..67348a0 100644 --- a/src/me/ryanhamshire/GriefPrevention/FlatFileDataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/FlatFileDataStore.java @@ -361,7 +361,7 @@ 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); + GriefPrevention.AddLogEntry("Failed to load a claim " + files[i].getName() + " because its world isn't loaded (yet?). Please delete the claim file or contact the GriefPrevention developer with information about which plugin(s) you're using to load or create worlds. " + lesserCornerString); inStream.close(); }