diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-01-03 02:04:48 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-01-03 02:04:48 +0000 |
commit | 7726fd0081346b59e4c555476f6c62e1aa38b69f (patch) | |
tree | dd0901e72b8dbbba7f7094945ab626beaa57fd33 /EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder | |
parent | 3aba996e97bd5bb90e65ed3166f3666d9122a729 (diff) | |
download | Essentials-7726fd0081346b59e4c555476f6c62e1aa38b69f.tar Essentials-7726fd0081346b59e4c555476f6c62e1aa38b69f.tar.gz Essentials-7726fd0081346b59e4c555476f6c62e1aa38b69f.tar.lz Essentials-7726fd0081346b59e4c555476f6c62e1aa38b69f.tar.xz Essentials-7726fd0081346b59e4c555476f6c62e1aa38b69f.zip |
Reload GlobalGroups when you perform a world load.
Changed GlobalGroups to save/load before local groups in the
scheduled data saving/loading
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java index 25eaf8526..dbdd17f34 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java @@ -176,6 +176,16 @@ public class WorldsHolder { ArrayList<WorldDataHolder> alreadyDone = new ArrayList<WorldDataHolder>(); Tasks.removeOldFiles(plugin, plugin.getBackupFolder()); + // Write Global Groups + if (GroupManager.getGlobalGroups().haveGroupsChanged()) { + GroupManager.getGlobalGroups().writeGroups(overwrite); + } else { + if (GroupManager.getGlobalGroups().getTimeStampGroups() < GroupManager.getGlobalGroups().getGlobalGroupsFile().lastModified()) { + System.out.print("Newer GlobalGroups file found (Loading changes)!"); + GroupManager.getGlobalGroups().load(); + } + } + for (OverloadedWorldHolder w : worldsData.values()) { if (alreadyDone.contains(w)) { continue; @@ -228,15 +238,6 @@ public class WorldsHolder { } alreadyDone.add(w); } - // Write Global Groups - if (GroupManager.getGlobalGroups().haveGroupsChanged()) { - GroupManager.getGlobalGroups().writeGroups(overwrite); - } else { - if (GroupManager.getGlobalGroups().getTimeStampGroups() < GroupManager.getGlobalGroups().getGlobalGroupsFile().lastModified()) { - System.out.print("Newer GlobalGroups file found (Loading changes)!"); - GroupManager.getGlobalGroups().load(); - } - } } /** |