diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-01-09 03:55:26 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-01-09 03:55:26 +0000 |
commit | 27ff43c0ac3f0ba21a25a5948247df027e4c2d47 (patch) | |
tree | 105fd2f3d981c9beac7320563e65a9c77a0989d9 /EssentialsGroupManager | |
parent | f210f8e20b60e04166273f62c3d791c07330cb74 (diff) | |
download | Essentials-27ff43c0ac3f0ba21a25a5948247df027e4c2d47.tar Essentials-27ff43c0ac3f0ba21a25a5948247df027e4c2d47.tar.gz Essentials-27ff43c0ac3f0ba21a25a5948247df027e4c2d47.tar.lz Essentials-27ff43c0ac3f0ba21a25a5948247df027e4c2d47.tar.xz Essentials-27ff43c0ac3f0ba21a25a5948247df027e4c2d47.zip |
Clear our attachment map upon a manload so we correctly reconfigure a
players new permissions.
Diffstat (limited to 'EssentialsGroupManager')
3 files changed, 5 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/Changelog.txt b/EssentialsGroupManager/src/Changelog.txt index 4ea195a5d..57fb16576 100644 --- a/EssentialsGroupManager/src/Changelog.txt +++ b/EssentialsGroupManager/src/Changelog.txt @@ -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.
\ No newline at end of file + - Prevent GM commands from being used on CommandBlocks.
+ - Clear our attachment map upon a manload so we correctly reconfigure a players new permissions.
\ No newline at end of file diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index 8c6b49ea5..c64e4c4bf 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -1697,7 +1697,7 @@ public class GroupManager extends JavaPlugin { isLoaded = true; - BukkitPermissions.updateAllPlayers(); + BukkitPermissions.reset(); } else { diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java index a4ddcf279..a39450de3 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java @@ -103,6 +103,8 @@ public class BukkitPermissions { }
public void reset() {
+ attachments = new WeakHashMap<String, PermissionAttachment>();
+
this.collectPermissions();
this.updateAllPlayers();
}
|