mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-24 00:01:41 +01:00
Show the world a group change is made in when using notify.
This commit is contained in:
parent
cc83553d72
commit
c1b4ed5920
@ -2003,7 +2003,7 @@ public class GroupManager extends JavaPlugin {
|
||||
sender.sendMessage(ChatColor.RED + "Review your arguments count!");
|
||||
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).");
|
||||
|
||||
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)));
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user