1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-25 13:49:12 +02:00

Added two new permission nodes - groupmanager.notify.self &

groupmanager.notify.other
	  These allow players/admins to be notified when players are moved
between groups.
This commit is contained in:
ElgarL
2011-10-11 13:10:29 +01:00
parent 5395b6f73a
commit 1bb3eb0d07
4 changed files with 34 additions and 1 deletions

View File

@@ -119,9 +119,12 @@ public class User extends DataUnit implements Cloneable {
group = getDataSource().getGroup(group.getName());
this.group = group.getName();
flagAsChanged();
if (GroupManager.isLoaded())
if (GroupManager.isLoaded()) {
if (GroupManager.BukkitPermissions.player_join = false)
GroupManager.BukkitPermissions.updateAllPlayers();
GroupManager.notify(this.getName(), String.format(" moved to the group %s.", group.getName()));
}
}
public void addSubGroup(Group subGroup) {