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:
@@ -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
|
||||
|
Reference in New Issue
Block a user