1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-25 13:49:12 +02:00

Fixed Group/User reloading

Fixed Group.clone(dataholder)
This commit is contained in:
ElgarL
2011-11-05 15:41:40 +00:00
parent 1c7e0e5b9f
commit cf9ef46182
3 changed files with 36 additions and 9 deletions

View File

@@ -67,7 +67,7 @@ public class User extends DataUnit implements Cloneable {
if (dataSource.getGroup(group) == null) {
clone.setGroup(dataSource.getDefaultGroup());
} else {
clone.setGroup(this.getGroupName());
clone.setGroup(dataSource.getGroup(this.getGroupName()));
}
for (String perm : this.getPermissionList()) {
clone.addPermission(perm);