summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-02-02 02:41:10 +0000
committerElgarL <ElgarL@palmergames.com>2012-02-02 02:41:10 +0000
commita0103afde373e581ce4028b7c57bef7b21bfc780 (patch)
tree4c9be67996e26b6053ae544487517d0299ac9913 /EssentialsGroupManager
parentdbf30740fb95fdacc2d3f21faa2b1c54e2e28777 (diff)
downloadEssentials-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.java4
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?