diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-10-31 08:34:07 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-10-31 08:34:07 +0000 |
commit | 34ba8e89bc9e9be00a539bb07a8ddaca16f9e954 (patch) | |
tree | d2f5478c1ea30ccfd8888c451e5fd861d211c29b /EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds | |
parent | b1c6173995721831c88570dd32edc77c369dca7a (diff) | |
download | Essentials-34ba8e89bc9e9be00a539bb07a8ddaca16f9e954.tar Essentials-34ba8e89bc9e9be00a539bb07a8ddaca16f9e954.tar.gz Essentials-34ba8e89bc9e9be00a539bb07a8ddaca16f9e954.tar.lz Essentials-34ba8e89bc9e9be00a539bb07a8ddaca16f9e954.tar.xz Essentials-34ba8e89bc9e9be00a539bb07a8ddaca16f9e954.zip |
Added Global Groups
Defined in groupmanager/globalgroups.yml.
Create groups in the yml with a g: prefix, then inherit in the worlds
groups files.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java index 7c40e19f5..f5b55a25a 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java @@ -149,6 +149,8 @@ public class WorldsHolder { w.reload(); alreadyDone.add(w); } + // Load global groups + GroupManager.getGlobalGroups().load(); } /** @@ -196,6 +198,10 @@ public class WorldsHolder { } alreadyDone.add(w); } + // Write Global Groups + if (GroupManager.getGlobalGroups().haveGroupsChanged()) { + GroupManager.getGlobalGroups().writeGroups(); + } } /** |