diff options
author | snowleo <schneeleo@gmail.com> | 2011-12-13 23:52:25 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-12-13 23:52:25 +0100 |
commit | 79861b1f10af8e57b3c11d0e5f12895648ebce44 (patch) | |
tree | ba90475ff033b4e5bf3688db5145c72b335ccc4f /EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java | |
parent | 505460349f840cf5a91f9f13f4a2e56537617263 (diff) | |
parent | 559400c606775141397b691fce2385e541bf143b (diff) | |
download | Essentials-79861b1f10af8e57b3c11d0e5f12895648ebce44.tar Essentials-79861b1f10af8e57b3c11d0e5f12895648ebce44.tar.gz Essentials-79861b1f10af8e57b3c11d0e5f12895648ebce44.tar.lz Essentials-79861b1f10af8e57b3c11d0e5f12895648ebce44.tar.xz Essentials-79861b1f10af8e57b3c11d0e5f12895648ebce44.zip |
Merge branch 'refs/heads/groupmanager'
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java index d7971d424..33b7b46f1 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GlobalGroups.java @@ -14,6 +14,8 @@ import java.util.Set; import java.util.logging.Level;
import org.anjocaido.groupmanager.data.Group;
+import org.anjocaido.groupmanager.events.GMGroupEvent;
+import org.anjocaido.groupmanager.events.GroupManagerEventHandler;
import org.anjocaido.groupmanager.utils.PermissionCheckResult;
import org.anjocaido.groupmanager.utils.Tasks;
import org.bukkit.configuration.MemorySection;
@@ -243,6 +245,8 @@ public class GlobalGroups { newGroup(groupToAdd);
haveGroupsChanged = true;
+ if (GroupManager.isLoaded())
+ GroupManagerEventHandler.callEvent(groupToAdd, GMGroupEvent.Action.GROUP_ADDED);
}
/**
@@ -270,6 +274,8 @@ public class GlobalGroups { if (groups.containsKey(groupName.toLowerCase())) {
groups.remove(groupName.toLowerCase());
this.setGroupsChanged(true);
+ if (GroupManager.isLoaded())
+ GroupManagerEventHandler.callEvent(groupName.toLowerCase(), GMGroupEvent.Action.GROUP_REMOVED);
return true;
}
return false;
|