summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2011-11-07 01:59:12 +0000
committerElgarL <ElgarL@palmergames.com>2011-11-07 01:59:12 +0000
commitab2e8f94f084bb1381ba8df604990796f63f5fc0 (patch)
tree053b8552794cfbb09c5ddb9064a87bf7bf558509 /EssentialsGroupManager
parentcf9ef461822f9480d5d7c3de26489a061bc05b1e (diff)
downloadEssentials-ab2e8f94f084bb1381ba8df604990796f63f5fc0.tar
Essentials-ab2e8f94f084bb1381ba8df604990796f63f5fc0.tar.gz
Essentials-ab2e8f94f084bb1381ba8df604990796f63f5fc0.tar.lz
Essentials-ab2e8f94f084bb1381ba8df604990796f63f5fc0.tar.xz
Essentials-ab2e8f94f084bb1381ba8df604990796f63f5fc0.zip
Fix for Users file being flagged as updated when it wasn't.
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java4
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java
index ce1693fc4..80291d066 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java
@@ -669,7 +669,7 @@ public class WorldDataHolder {
ph.removeGroupsChangedFlag();
// Update the LastModified time.
ph.groupsFile = groupsFile;
- ph.setTimeStamps();
+ ph.setTimeStampGroups(groupsFile.lastModified());
//return ph;
}
@@ -776,7 +776,7 @@ public class WorldDataHolder {
ph.removeUsersChangedFlag();
// Update the LastModified time.
ph.usersFile = usersFile;
- ph.setTimeStamps();
+ ph.setTimeStampUsers(usersFile.lastModified());
//return ph;
}
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java
index bf7b290ae..6544bb1cc 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java
@@ -200,8 +200,8 @@ public class WorldsHolder {
//Check for newer file as no local changes.
if (w.getTimeStampGroups() < w.getGroupsFile().lastModified()) {
System.out.print("Newer Groups file found (Loading changes)!");
- // Backup Users file
- backupFile(w,false);
+ // Backup Groups file
+ backupFile(w,true);
w.reloadGroups();
}
}