mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 21:39:21 +00:00
fix setGroup to only block superperms update if update is false.
This commit is contained in:
parent
dbf30740fb
commit
a0103afde3
1 changed files with 2 additions and 2 deletions
|
@ -138,8 +138,8 @@ public class User extends DataUnit implements Cloneable {
|
||||||
String oldGroup = this.group;
|
String oldGroup = this.group;
|
||||||
this.group = group.getName();
|
this.group = group.getName();
|
||||||
flagAsChanged();
|
flagAsChanged();
|
||||||
if (GroupManager.isLoaded() && (updatePerms)) {
|
if (GroupManager.isLoaded()) {
|
||||||
if (!GroupManager.BukkitPermissions.isPlayer_join())
|
if (!GroupManager.BukkitPermissions.isPlayer_join() && (updatePerms))
|
||||||
GroupManager.BukkitPermissions.updatePlayer(getBukkitPlayer());
|
GroupManager.BukkitPermissions.updatePlayer(getBukkitPlayer());
|
||||||
|
|
||||||
// Do we notify of the group change?
|
// Do we notify of the group change?
|
||||||
|
|
Loading…
Reference in a new issue