summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2013-02-22 17:07:55 +0000
committerElgarL <ElgarL@palmergames.com>2013-02-22 17:07:55 +0000
commit9ce067a7fde4cee00ae18b8881b866e0f1153042 (patch)
tree62e8529acaf7c527a80d2d52a5818e587dd81159 /EssentialsGroupManager/src
parent51ddcdcf87c657a823ddf2ccaa8d4022a79d6784 (diff)
downloadEssentials-9ce067a7fde4cee00ae18b8881b866e0f1153042.tar
Essentials-9ce067a7fde4cee00ae18b8881b866e0f1153042.tar.gz
Essentials-9ce067a7fde4cee00ae18b8881b866e0f1153042.tar.lz
Essentials-9ce067a7fde4cee00ae18b8881b866e0f1153042.tar.xz
Essentials-9ce067a7fde4cee00ae18b8881b866e0f1153042.zip
Fix global mirroring of non main worlds.
Diffstat (limited to 'EssentialsGroupManager/src')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java
index bf84bce4c..d173307f2 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java
@@ -418,8 +418,14 @@ public class WorldsHolder {
// Find this worlds data
if (worldsData.containsKey(worldNameLowered))
return getUpdatedWorldData(worldNameLowered);
-
- // Oddly no data source was found for this world so return the default.
+
+ // Oddly no data source was found for this world so attempt to return the global mirror.
+ if (worldsData.containsKey("all_unnamed_worlds")) {
+ GroupManager.logger.finest("Requested world " + worldName + " not found or badly mirrored. Returning all_unnamed_worlds world...");
+ return getUpdatedWorldData("all_unnamed_worlds");
+ }
+
+ // Oddly no data source or global mirror was found for this world so return the default.
GroupManager.logger.finest("Requested world " + worldName + " not found or badly mirrored. Returning default world...");
return getDefaultWorld();
}