mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 16:09:44 +00:00
Show the world a group change is made in when using notify.
This commit is contained in:
parent
cc83553d72
commit
c1b4ed5920
2 changed files with 2 additions and 2 deletions
|
@ -2003,7 +2003,7 @@ public class GroupManager extends JavaPlugin {
|
||||||
sender.sendMessage(ChatColor.RED + "Review your arguments count!");
|
sender.sendMessage(ChatColor.RED + "Review your arguments count!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
selectedWorlds.remove(sender);
|
selectedWorlds.remove(sender.getName());
|
||||||
sender.sendMessage(ChatColor.YELLOW + "You have removed your world selection. Working with current world(if possible).");
|
sender.sendMessage(ChatColor.YELLOW + "You have removed your world selection. Working with current world(if possible).");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -144,7 +144,7 @@ public class User extends DataUnit implements Cloneable {
|
||||||
boolean notify = (!oldGroup.equalsIgnoreCase(defaultGroupName)) || ((oldGroup.equalsIgnoreCase(defaultGroupName)) && (!this.group.equalsIgnoreCase(defaultGroupName)));
|
boolean notify = (!oldGroup.equalsIgnoreCase(defaultGroupName)) || ((oldGroup.equalsIgnoreCase(defaultGroupName)) && (!this.group.equalsIgnoreCase(defaultGroupName)));
|
||||||
|
|
||||||
if (notify)
|
if (notify)
|
||||||
GroupManager.notify(this.getName(), String.format(" moved to the group %s.", group.getName()));
|
GroupManager.notify(this.getName(), String.format(" moved to the group %s in %s.", group.getName(), this.getDataSource().getName()));
|
||||||
|
|
||||||
GroupManager.getGMEventHandler().callEvent(this, Action.USER_GROUP_CHANGED);
|
GroupManager.getGMEventHandler().callEvent(this, Action.USER_GROUP_CHANGED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue