1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-02 00:56:55 +02:00

Remove all permission attachments when performing a manload or restart.

This commit is contained in:
ElgarL
2012-04-06 12:53:36 +01:00
parent 006f8c3a73
commit 43c733393c
3 changed files with 14 additions and 1 deletions

View File

@@ -362,6 +362,15 @@ public class BukkitPermissions {
attachments.remove(player);
}
}
/**
* Remove all attachments in case of a restart or reload.
*/
public void removeAllAttachments() {
for (Player player : attachments.keySet())
removeAttachment(player);
}
/**
* Player events tracked to cause Superperms updates