mirror of
https://github.com/essentials/Essentials.git
synced 2025-07-31 20:00:47 +02:00
Show the world a group change is made in when using notify.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user