1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-06 14:46:32 +02:00

Remove attachments before clearing

This commit is contained in:
ElgarL
2013-01-09 04:04:59 +00:00
parent c091ebbfef
commit 0db764f35d

View File

@@ -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();