mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-10-02 06:44:39 +00:00
Remove attachments before clearing
This commit is contained in:
parent
27ff43c0ac
commit
eacb847305
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue