Fix no auto login permission (Fixes #118)

This commit is contained in:
games647 2018-03-15 20:42:50 +01:00
parent 914b76ad12
commit 6d60e72296
No known key found for this signature in database
GPG Key ID: BFC68C8708713A88

View File

@ -1,6 +1,8 @@
package fr.xephi.authme.util;
import com.google.common.io.Files;
import com.google.common.io.MoreFiles;
import fr.xephi.authme.AuthMe;
import fr.xephi.authme.ConsoleLogger;
@ -162,6 +164,8 @@ public final class FileUtils {
* @return path to a file suitably named for storing a backup
*/
public static String createBackupFilePath(File file) {
MoreFiles.getNameWithoutExtension(file.toPath());
String filename = "backup_" + Files.getNameWithoutExtension(file.getName())
+ "_" + createCurrentTimeString()
+ "." + Files.getFileExtension(file.getName());