diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-09-02 23:07:23 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-09-02 23:07:23 +0100 |
commit | 9e0a10ba80f040dd09994c843dde70220270a5e4 (patch) | |
tree | 2cc2d13148de09df4ad02909f76f415b9a4138a7 /EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java | |
parent | 818472dc58dcd9885a18cd1ff67e98a2dec5532c (diff) | |
download | Essentials-9e0a10ba80f040dd09994c843dde70220270a5e4.tar Essentials-9e0a10ba80f040dd09994c843dde70220270a5e4.tar.gz Essentials-9e0a10ba80f040dd09994c843dde70220270a5e4.tar.lz Essentials-9e0a10ba80f040dd09994c843dde70220270a5e4.tar.xz Essentials-9e0a10ba80f040dd09994c843dde70220270a5e4.zip |
Bukkit Superperms support
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java')
-rw-r--r--[-rwxr-xr-x] | EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java index b90cf4ff1..f3ea1d0f5 100755..100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java @@ -6,6 +6,8 @@ package org.anjocaido.groupmanager.data; //import com.sun.org.apache.bcel.internal.generic.AALOAD; import java.util.ArrayList; + +import org.anjocaido.groupmanager.GroupManager; import org.anjocaido.groupmanager.dataholder.WorldDataHolder; import java.util.Map; @@ -102,6 +104,8 @@ public class User extends DataUnit implements Cloneable { public void setGroup(String group) { this.group = group; flagAsChanged(); + if (GroupManager.isLoaded) + GroupManager.BukkitPermissions.updateAllPlayers(); } /** @@ -114,6 +118,8 @@ public class User extends DataUnit implements Cloneable { group = getDataSource().getGroup(group.getName()); this.group = group.getName(); flagAsChanged(); + if (GroupManager.isLoaded) + GroupManager.BukkitPermissions.updateAllPlayers(); } public void addSubGroup(Group subGroup) { @@ -127,6 +133,8 @@ public class User extends DataUnit implements Cloneable { removeSubGroup(subGroup); subGroups.add(subGroup.getName()); flagAsChanged(); + if (GroupManager.isLoaded) + GroupManager.BukkitPermissions.updateAllPlayers(); } public int subGroupsSize() { @@ -145,6 +153,8 @@ public class User extends DataUnit implements Cloneable { try { if (subGroups.remove(subGroup.getName())) { flagAsChanged(); + if (GroupManager.isLoaded) + GroupManager.BukkitPermissions.updateAllPlayers(); return true; } } catch (Exception e) { @@ -187,5 +197,7 @@ public class User extends DataUnit implements Cloneable { variables.addVar(key, temp.getVarObject(key)); } flagAsChanged(); + if (GroupManager.isLoaded) + GroupManager.BukkitPermissions.updateAllPlayers(); } } |