mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-13 03:10:36 +01:00
fix conflict
This commit is contained in:
commit
3b1c8cd2e4
@ -42,8 +42,8 @@ public class vAuthFileReader {
|
|||||||
String name = line.split(": ")[0];
|
String name = line.split(": ")[0];
|
||||||
String password = line.split(": ")[1];
|
String password = line.split(": ")[1];
|
||||||
PlayerAuth auth;
|
PlayerAuth auth;
|
||||||
if (isUUIDinstance(password)) {
|
if (isUuidInstance(password)) {
|
||||||
String playerName;
|
String pname;
|
||||||
try {
|
try {
|
||||||
playerName = Bukkit.getOfflinePlayer(UUID.fromString(name)).getName();
|
playerName = Bukkit.getOfflinePlayer(UUID.fromString(name)).getName();
|
||||||
} catch (Exception | NoSuchMethodError e) {
|
} catch (Exception | NoSuchMethodError e) {
|
||||||
@ -64,17 +64,8 @@ public class vAuthFileReader {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private static boolean isUuidInstance(String s) {
|
||||||
* Method isUUIDinstance.
|
return s.length() > 8 && s.charAt(8) == '-';
|
||||||
*
|
|
||||||
* @param s String
|
|
||||||
*
|
|
||||||
* @return boolean
|
|
||||||
*/
|
|
||||||
private boolean isUUIDinstance(String s) {
|
|
||||||
if (String.valueOf(s.charAt(8)).equalsIgnoreCase("-"))
|
|
||||||
return true;
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user