standard javadoc
This commit is contained in:
@@ -36,8 +36,8 @@ public class CrazyLoginConverter implements Converter {
|
||||
|
||||
/**
|
||||
* Method getInstance.
|
||||
* @return CrazyLoginConverter
|
||||
*/
|
||||
|
||||
* @return CrazyLoginConverter */
|
||||
public CrazyLoginConverter getInstance() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -121,9 +121,9 @@ public class FlatToSqlite implements Converter {
|
||||
|
||||
/**
|
||||
* Method connect.
|
||||
* @throws ClassNotFoundException
|
||||
* @throws SQLException
|
||||
*/
|
||||
|
||||
|
||||
* @throws ClassNotFoundException * @throws SQLException */
|
||||
private synchronized void connect() throws ClassNotFoundException, SQLException {
|
||||
Class.forName("org.sqlite.JDBC");
|
||||
con = DriverManager.getConnection("jdbc:sqlite:plugins/AuthMe/" + database + ".db");
|
||||
@@ -131,8 +131,8 @@ public class FlatToSqlite implements Converter {
|
||||
|
||||
/**
|
||||
* Method setup.
|
||||
* @throws SQLException
|
||||
*/
|
||||
|
||||
* @throws SQLException */
|
||||
private synchronized void setup() throws SQLException {
|
||||
Statement st = null;
|
||||
ResultSet rs = null;
|
||||
@@ -179,8 +179,8 @@ public class FlatToSqlite implements Converter {
|
||||
/**
|
||||
* Method saveAuth.
|
||||
* @param s String
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
private synchronized boolean saveAuth(String s) {
|
||||
PreparedStatement pst = null;
|
||||
try {
|
||||
|
||||
@@ -41,8 +41,8 @@ public class RakamakConverter implements Converter {
|
||||
|
||||
/**
|
||||
* Method getInstance.
|
||||
* @return RakamakConverter
|
||||
*/
|
||||
|
||||
* @return RakamakConverter */
|
||||
public RakamakConverter getInstance() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -20,16 +20,16 @@ public class RoyalAuthYamlReader extends CustomConfiguration {
|
||||
|
||||
/**
|
||||
* Method getLastLogin.
|
||||
* @return long
|
||||
*/
|
||||
|
||||
* @return long */
|
||||
public long getLastLogin() {
|
||||
return getLong("timestamps.quit");
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getHash.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getHash() {
|
||||
return getString("login.password");
|
||||
}
|
||||
|
||||
@@ -35,8 +35,8 @@ public class vAuthFileReader {
|
||||
|
||||
/**
|
||||
* Method convert.
|
||||
* @throws IOException
|
||||
*/
|
||||
|
||||
* @throws IOException */
|
||||
public void convert() throws IOException {
|
||||
final File file = new File(plugin.getDataFolder().getParent() + "" + File.separator + "vAuth" + File.separator + "passwords.yml");
|
||||
Scanner scanner;
|
||||
@@ -71,8 +71,8 @@ public class vAuthFileReader {
|
||||
/**
|
||||
* Method isUUIDinstance.
|
||||
* @param s String
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
private boolean isUUIDinstance(String s) {
|
||||
if (String.valueOf(s.charAt(8)).equalsIgnoreCase("-"))
|
||||
return true;
|
||||
@@ -82,8 +82,8 @@ public class vAuthFileReader {
|
||||
/**
|
||||
* Method getName.
|
||||
* @param uuid UUID
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
private String getName(UUID uuid) {
|
||||
try {
|
||||
for (OfflinePlayer op : Bukkit.getOfflinePlayers()) {
|
||||
|
||||
@@ -38,8 +38,8 @@ public class xAuthToFlat {
|
||||
|
||||
/**
|
||||
* Method convert.
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean convert() {
|
||||
if (instance.getServer().getPluginManager().getPlugin("xAuth") == null) {
|
||||
sender.sendMessage("[AuthMe] xAuth plugin not found");
|
||||
@@ -73,8 +73,8 @@ public class xAuthToFlat {
|
||||
/**
|
||||
* Method getIdPlayer.
|
||||
* @param id int
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getIdPlayer(int id) {
|
||||
String realPass = "";
|
||||
Connection conn = xAuth.getPlugin().getDatabaseController().getConnection();
|
||||
@@ -99,8 +99,8 @@ public class xAuthToFlat {
|
||||
|
||||
/**
|
||||
* Method getXAuthPlayers.
|
||||
* @return List<Integer>
|
||||
*/
|
||||
|
||||
* @return List<Integer> */
|
||||
public List<Integer> getXAuthPlayers() {
|
||||
List<Integer> xP = new ArrayList<>();
|
||||
Connection conn = xAuth.getPlugin().getDatabaseController().getConnection();
|
||||
@@ -125,8 +125,8 @@ public class xAuthToFlat {
|
||||
/**
|
||||
* Method getPassword.
|
||||
* @param accountId int
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getPassword(int accountId) {
|
||||
String realPass = "";
|
||||
Connection conn = xAuth.getPlugin().getDatabaseController().getConnection();
|
||||
|
||||
Reference in New Issue
Block a user