diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-02-02 02:41:10 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-02-02 02:41:10 +0000 |
commit | a0103afde373e581ce4028b7c57bef7b21bfc780 (patch) | |
tree | 4c9be67996e26b6053ae544487517d0299ac9913 /EssentialsGroupManager | |
parent | dbf30740fb95fdacc2d3f21faa2b1c54e2e28777 (diff) | |
download | Essentials-a0103afde373e581ce4028b7c57bef7b21bfc780.tar Essentials-a0103afde373e581ce4028b7c57bef7b21bfc780.tar.gz Essentials-a0103afde373e581ce4028b7c57bef7b21bfc780.tar.lz Essentials-a0103afde373e581ce4028b7c57bef7b21bfc780.tar.xz Essentials-a0103afde373e581ce4028b7c57bef7b21bfc780.zip |
fix setGroup to only block superperms update if update is false.
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java index 980b0846c..30fe3f709 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java @@ -138,8 +138,8 @@ public class User extends DataUnit implements Cloneable { String oldGroup = this.group; this.group = group.getName(); flagAsChanged(); - if (GroupManager.isLoaded() && (updatePerms)) { - if (!GroupManager.BukkitPermissions.isPlayer_join()) + if (GroupManager.isLoaded()) { + if (!GroupManager.BukkitPermissions.isPlayer_join() && (updatePerms)) GroupManager.BukkitPermissions.updatePlayer(getBukkitPlayer()); // Do we notify of the group change? |