mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-06 14:46:32 +02:00
Clear our attachment map upon a manload so we correctly reconfigure a
players new permissions.
This commit is contained in:
@@ -203,4 +203,5 @@ v 2.0:
|
|||||||
- Add alphabetically sorted user lists.
|
- Add alphabetically sorted user lists.
|
||||||
- allWorldsDataList now returns fully mirrored worlds which are not identical mirrors (fixes the /manselect list).
|
- allWorldsDataList now returns fully mirrored worlds which are not identical mirrors (fixes the /manselect list).
|
||||||
- Add support for Rcon.
|
- 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.
|
@@ -1697,7 +1697,7 @@ public class GroupManager extends JavaPlugin {
|
|||||||
|
|
||||||
isLoaded = true;
|
isLoaded = true;
|
||||||
|
|
||||||
BukkitPermissions.updateAllPlayers();
|
BukkitPermissions.reset();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@@ -103,6 +103,8 @@ public class BukkitPermissions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void reset() {
|
public void reset() {
|
||||||
|
attachments = new WeakHashMap<String, PermissionAttachment>();
|
||||||
|
|
||||||
this.collectPermissions();
|
this.collectPermissions();
|
||||||
this.updateAllPlayers();
|
this.updateAllPlayers();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user