1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-09 08:06:54 +02:00

fix setGroup to only block superperms update if update is false.

This commit is contained in:
ElgarL
2012-02-02 02:41:10 +00:00
parent 1894a5621c
commit cc6b2b7f8f

View File

@@ -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?