diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-03-17 15:56:40 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-03-17 15:56:40 +0000 |
commit | 6476158462650c9dea305c2e3892e976a258a529 (patch) | |
tree | 1d74751993e91cfc119c867894865bee6dff0ff3 /EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds | |
parent | b72083fb186504b88aad84c9b4df4b5349602c77 (diff) | |
download | Essentials-6476158462650c9dea305c2e3892e976a258a529.tar Essentials-6476158462650c9dea305c2e3892e976a258a529.tar.gz Essentials-6476158462650c9dea305c2e3892e976a258a529.tar.lz Essentials-6476158462650c9dea305c2e3892e976a258a529.tar.xz Essentials-6476158462650c9dea305c2e3892e976a258a529.zip |
Don't remove an attachment on a player leaving as Bukkit never forgets
it. This fixes non mirrored permissions being messed up if a player
relogs.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java index e72118468..290a58388 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java @@ -347,32 +347,8 @@ public class WorldsHolder { String worldNameLowered = worldName.toLowerCase(); // Find this worlds data - if (worldsData.containsKey(worldNameLowered)) { - - String usersMirror = mirrorsUser.get(worldNameLowered); - String groupsMirror = mirrorsGroup.get(worldNameLowered); - - if (usersMirror != null) { - - // If both are mirrored - if (groupsMirror != null) { - - // if the data sources are the same, return the parent - if (usersMirror == groupsMirror) - return getUpdatedWorldData(usersMirror.toLowerCase()); - - // Both data sources are mirrors, but they are from different parents - // so we return the actual data object. - return getUpdatedWorldData(worldNameLowered); - } - - // Groups isn't a mirror so return this this worlds data source - return getUpdatedWorldData(worldNameLowered); - } - - // users isn't mirrored so we need to return this worlds data source + if (worldsData.containsKey(worldNameLowered)) return getUpdatedWorldData(worldNameLowered); - } // Oddly no data source was found for this world so return the default. GroupManager.logger.finest("Requested world " + worldName + " not found or badly mirrored. Returning default world..."); |