diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-01-09 04:27:10 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-01-09 04:27:10 +0000 |
commit | e731b8b6ebe364e11b5e196febfbadb2ed9c6212 (patch) | |
tree | 650692574966a262ae516a78fc8b231323ae33ad /EssentialsGroupManager/src/org | |
parent | 7e166d969a63180bfa455b75ff59ce70149e43a2 (diff) | |
download | Essentials-e731b8b6ebe364e11b5e196febfbadb2ed9c6212.tar Essentials-e731b8b6ebe364e11b5e196febfbadb2ed9c6212.tar.gz Essentials-e731b8b6ebe364e11b5e196febfbadb2ed9c6212.tar.lz Essentials-e731b8b6ebe364e11b5e196febfbadb2ed9c6212.tar.xz Essentials-e731b8b6ebe364e11b5e196febfbadb2ed9c6212.zip |
Remove attachments BEFORE we clear them.
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java index 4d9e0ba1c..6b02a2286 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java @@ -105,14 +105,6 @@ public class BukkitPermissions { public void reset() {
/*
- * Remove all attachments.
- */
- for (String key : attachments.keySet()) {
- attachments.get(key).remove();
- attachments.remove(key);
- }
-
- /*
* collect new permissions
* and register all attachments.
*/
@@ -395,8 +387,10 @@ public class BukkitPermissions { */
private void removeAttachment(String playerName) {
- if (attachments.containsKey(playerName))
+ if (attachments.containsKey(playerName)) {
+ attachments.get(playerName).remove();
attachments.remove(playerName);
+ }
}
/**
@@ -404,6 +398,12 @@ public class BukkitPermissions { */
public void removeAllAttachments() {
+ /*
+ * Remove all attachments.
+ */
+ for (String key : attachments.keySet()) {
+ attachments.get(key).remove();
+ }
attachments.clear();
}
|