Fix no auto login permission (Fixes #118)
This commit is contained in:
parent
914b76ad12
commit
6d60e72296
@ -1,6 +1,8 @@
|
|||||||
package fr.xephi.authme.util;
|
package fr.xephi.authme.util;
|
||||||
|
|
||||||
import com.google.common.io.Files;
|
import com.google.common.io.Files;
|
||||||
|
import com.google.common.io.MoreFiles;
|
||||||
|
|
||||||
import fr.xephi.authme.AuthMe;
|
import fr.xephi.authme.AuthMe;
|
||||||
import fr.xephi.authme.ConsoleLogger;
|
import fr.xephi.authme.ConsoleLogger;
|
||||||
|
|
||||||
@ -162,6 +164,8 @@ public final class FileUtils {
|
|||||||
* @return path to a file suitably named for storing a backup
|
* @return path to a file suitably named for storing a backup
|
||||||
*/
|
*/
|
||||||
public static String createBackupFilePath(File file) {
|
public static String createBackupFilePath(File file) {
|
||||||
|
MoreFiles.getNameWithoutExtension(file.toPath());
|
||||||
|
|
||||||
String filename = "backup_" + Files.getNameWithoutExtension(file.getName())
|
String filename = "backup_" + Files.getNameWithoutExtension(file.getName())
|
||||||
+ "_" + createCurrentTimeString()
|
+ "_" + createCurrentTimeString()
|
||||||
+ "." + Files.getFileExtension(file.getName());
|
+ "." + Files.getFileExtension(file.getName());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user