40 lines
683 B
Java
40 lines
683 B
Java
package fr.xephi.authme.converter;
|
|
|
|
import fr.xephi.authme.settings.CustomConfiguration;
|
|
|
|
import java.io.File;
|
|
|
|
/**
|
|
*/
|
|
public class RoyalAuthYamlReader extends CustomConfiguration {
|
|
|
|
/**
|
|
* Constructor for RoyalAuthYamlReader.
|
|
*
|
|
* @param file File
|
|
*/
|
|
public RoyalAuthYamlReader(File file) {
|
|
super(file);
|
|
load();
|
|
save();
|
|
}
|
|
|
|
/**
|
|
* Method getLastLogin.
|
|
*
|
|
* @return long
|
|
*/
|
|
public long getLastLogin() {
|
|
return getLong("timestamps.quit");
|
|
}
|
|
|
|
/**
|
|
* Method getHash.
|
|
*
|
|
* @return String
|
|
*/
|
|
public String getHash() {
|
|
return getString("login.password");
|
|
}
|
|
}
|