mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-04 13:47:53 +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!");
|
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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user