summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2013-02-25 14:11:42 +0000
committerElgarL <ElgarL@palmergames.com>2013-02-25 14:11:42 +0000
commitc1b4ed59208dbb5717f498dc80c1a8789b8101f2 (patch)
treef8bc9a8c696034b2f115470a50023d9914acca24 /EssentialsGroupManager
parentcc83553d7286691377a3b41417ef5ddb7effae69 (diff)
downloadEssentials-c1b4ed59208dbb5717f498dc80c1a8789b8101f2.tar
Essentials-c1b4ed59208dbb5717f498dc80c1a8789b8101f2.tar.gz
Essentials-c1b4ed59208dbb5717f498dc80c1a8789b8101f2.tar.lz
Essentials-c1b4ed59208dbb5717f498dc80c1a8789b8101f2.tar.xz
Essentials-c1b4ed59208dbb5717f498dc80c1a8789b8101f2.zip
Show the world a group change is made in when using notify.
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java2
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index 0e7f56d73..ac1fadb54 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -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;
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java
index bbb2ae03a..adec183cd 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java
@@ -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);
}