diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-02-22 17:07:55 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-02-22 17:07:55 +0000 |
commit | ffde29a3070f19134693731e0602edda330fdf6d (patch) | |
tree | 615f7fbda541fb80b0147ad878e4a22c52c2c0ef /EssentialsGroupManager/src | |
parent | 17bdef5613d6ce1fa604ff5bf5ba9408cc42b864 (diff) | |
download | Essentials-ffde29a3070f19134693731e0602edda330fdf6d.tar Essentials-ffde29a3070f19134693731e0602edda330fdf6d.tar.gz Essentials-ffde29a3070f19134693731e0602edda330fdf6d.tar.lz Essentials-ffde29a3070f19134693731e0602edda330fdf6d.tar.xz Essentials-ffde29a3070f19134693731e0602edda330fdf6d.zip |
Fix global mirroring of non main worlds.
Diffstat (limited to 'EssentialsGroupManager/src')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java | 10 |
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(); } |