diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-01-09 03:55:26 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-01-09 03:55:26 +0000 |
commit | 243759a4a60b7b8e9f68f995e719e6db52499bb3 (patch) | |
tree | b9b9eaadf20f33bc08464936348f097790de8a8e /EssentialsGroupManager/src/org | |
parent | 51e93c4c55970af96a80c2ec1ea3b3991952ba78 (diff) | |
download | Essentials-243759a4a60b7b8e9f68f995e719e6db52499bb3.tar Essentials-243759a4a60b7b8e9f68f995e719e6db52499bb3.tar.gz Essentials-243759a4a60b7b8e9f68f995e719e6db52499bb3.tar.lz Essentials-243759a4a60b7b8e9f68f995e719e6db52499bb3.tar.xz Essentials-243759a4a60b7b8e9f68f995e719e6db52499bb3.zip |
Clear our attachment map upon a manload so we correctly reconfigure a
players new permissions.
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 2 | ||||
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index 8c6b49ea5..c64e4c4bf 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -1697,7 +1697,7 @@ public class GroupManager extends JavaPlugin { isLoaded = true; - BukkitPermissions.updateAllPlayers(); + BukkitPermissions.reset(); } else { diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java index a4ddcf279..a39450de3 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java @@ -103,6 +103,8 @@ public class BukkitPermissions { }
public void reset() {
+ attachments = new WeakHashMap<String, PermissionAttachment>();
+
this.collectPermissions();
this.updateAllPlayers();
}
|