mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-26 00:19:43 +00:00
Fix string compares
This commit is contained in:
parent
4ac5551c6b
commit
269947bdae
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ public class User extends DataUnit implements Cloneable {
|
|||
String defaultGroupName = getDataSource().getDefaultGroup().getName();
|
||||
// if we are not in the default group
|
||||
// or we are in the default group and the move is to a different group.
|
||||
boolean notify = (this.group != defaultGroupName) || ((this.group == defaultGroupName) && (group.getName() != defaultGroupName)) ;
|
||||
boolean notify = (!this.group.equalsIgnoreCase(defaultGroupName)) || ((this.group.equalsIgnoreCase(defaultGroupName)) && (!group.getName().equalsIgnoreCase(defaultGroupName))) ;
|
||||
this.group = group.getName();
|
||||
flagAsChanged();
|
||||
if (GroupManager.isLoaded()) {
|
||||
|
|
Loading…
Reference in a new issue