Clear our attachment map upon a manload so we correctly reconfigure a

players new permissions.
This commit is contained in:
ElgarL 2013-01-09 03:55:26 +00:00
parent f210f8e20b
commit 27ff43c0ac
3 changed files with 5 additions and 2 deletions

View File

@ -203,4 +203,5 @@ v 2.0:
- Add alphabetically sorted user lists.
- allWorldsDataList now returns fully mirrored worlds which are not identical mirrors (fixes the /manselect list).
- Add support for Rcon.
- Prevent GM commands from being used on CommandBlocks.
- Prevent GM commands from being used on CommandBlocks.
- Clear our attachment map upon a manload so we correctly reconfigure a players new permissions.

View File

@ -1697,7 +1697,7 @@ public class GroupManager extends JavaPlugin {
isLoaded = true;
BukkitPermissions.updateAllPlayers();
BukkitPermissions.reset();
} else {

View File

@ -103,6 +103,8 @@ public class BukkitPermissions {
}
public void reset() {
attachments = new WeakHashMap<String, PermissionAttachment>();
this.collectPermissions();
this.updateAllPlayers();
}