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 | cc6b2b7f8f5025363a13602c9b83fd1a63800b95 (patch) | |
tree | e2616646d8453ed5e10e568f8824599d3bb2edfe /EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java | |
parent | 1894a5621ca36bc09a1d215f5b86534bf8c61464 (diff) | |
download | Essentials-cc6b2b7f8f5025363a13602c9b83fd1a63800b95.tar Essentials-cc6b2b7f8f5025363a13602c9b83fd1a63800b95.tar.gz Essentials-cc6b2b7f8f5025363a13602c9b83fd1a63800b95.tar.lz Essentials-cc6b2b7f8f5025363a13602c9b83fd1a63800b95.tar.xz Essentials-cc6b2b7f8f5025363a13602c9b83fd1a63800b95.zip |
fix setGroup to only block superperms update if update is false.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java')
-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? |