mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 10:04:51 +02:00
Fix for Users file being flagged as updated when it wasn't.
This commit is contained in:
@@ -669,7 +669,7 @@ public class WorldDataHolder {
|
|||||||
ph.removeGroupsChangedFlag();
|
ph.removeGroupsChangedFlag();
|
||||||
// Update the LastModified time.
|
// Update the LastModified time.
|
||||||
ph.groupsFile = groupsFile;
|
ph.groupsFile = groupsFile;
|
||||||
ph.setTimeStamps();
|
ph.setTimeStampGroups(groupsFile.lastModified());
|
||||||
|
|
||||||
//return ph;
|
//return ph;
|
||||||
}
|
}
|
||||||
@@ -776,7 +776,7 @@ public class WorldDataHolder {
|
|||||||
ph.removeUsersChangedFlag();
|
ph.removeUsersChangedFlag();
|
||||||
// Update the LastModified time.
|
// Update the LastModified time.
|
||||||
ph.usersFile = usersFile;
|
ph.usersFile = usersFile;
|
||||||
ph.setTimeStamps();
|
ph.setTimeStampUsers(usersFile.lastModified());
|
||||||
|
|
||||||
//return ph;
|
//return ph;
|
||||||
}
|
}
|
||||||
|
@@ -200,8 +200,8 @@ public class WorldsHolder {
|
|||||||
//Check for newer file as no local changes.
|
//Check for newer file as no local changes.
|
||||||
if (w.getTimeStampGroups() < w.getGroupsFile().lastModified()) {
|
if (w.getTimeStampGroups() < w.getGroupsFile().lastModified()) {
|
||||||
System.out.print("Newer Groups file found (Loading changes)!");
|
System.out.print("Newer Groups file found (Loading changes)!");
|
||||||
// Backup Users file
|
// Backup Groups file
|
||||||
backupFile(w,false);
|
backupFile(w,true);
|
||||||
w.reloadGroups();
|
w.reloadGroups();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user