diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-01-09 04:04:59 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-01-09 04:04:59 +0000 |
commit | 84e455828076ce0a0ebb4a9011cf56d9ad2d9cdd (patch) | |
tree | 2d5cc2f2d8c08697dfaee6da2524e2981760a519 /EssentialsGroupManager/src/org | |
parent | 243759a4a60b7b8e9f68f995e719e6db52499bb3 (diff) | |
download | Essentials-84e455828076ce0a0ebb4a9011cf56d9ad2d9cdd.tar Essentials-84e455828076ce0a0ebb4a9011cf56d9ad2d9cdd.tar.gz Essentials-84e455828076ce0a0ebb4a9011cf56d9ad2d9cdd.tar.lz Essentials-84e455828076ce0a0ebb4a9011cf56d9ad2d9cdd.tar.xz Essentials-84e455828076ce0a0ebb4a9011cf56d9ad2d9cdd.zip |
Remove attachments before clearing
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java index a39450de3..ffdc51616 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java @@ -103,6 +103,15 @@ public class BukkitPermissions { }
public void reset() {
+
+ /*
+ * Remove all attachments.
+ */
+ for (String key : attachments.keySet()) {
+ attachments.get(key).remove();
+ attachments.remove(key);
+ }
+
attachments = new WeakHashMap<String, PermissionAttachment>();
this.collectPermissions();
|