standard javadoc
This commit is contained in:
+30
-30
@@ -189,16 +189,16 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getNickname.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getNickname() {
|
||||
return nickname;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getRealName.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getRealName() {
|
||||
return realName;
|
||||
}
|
||||
@@ -213,8 +213,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getGroupId.
|
||||
* @return int
|
||||
*/
|
||||
|
||||
* @return int */
|
||||
public int getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
@@ -229,8 +229,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getQuitLocX.
|
||||
* @return double
|
||||
*/
|
||||
|
||||
* @return double */
|
||||
public double getQuitLocX() {
|
||||
return x;
|
||||
}
|
||||
@@ -245,8 +245,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getQuitLocY.
|
||||
* @return double
|
||||
*/
|
||||
|
||||
* @return double */
|
||||
public double getQuitLocY() {
|
||||
return y;
|
||||
}
|
||||
@@ -261,8 +261,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getQuitLocZ.
|
||||
* @return double
|
||||
*/
|
||||
|
||||
* @return double */
|
||||
public double getQuitLocZ() {
|
||||
return z;
|
||||
}
|
||||
@@ -277,8 +277,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getWorld.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getWorld() {
|
||||
return world;
|
||||
}
|
||||
@@ -293,8 +293,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getIp.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
@@ -309,8 +309,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getLastLogin.
|
||||
* @return long
|
||||
*/
|
||||
|
||||
* @return long */
|
||||
public long getLastLogin() {
|
||||
return lastLogin;
|
||||
}
|
||||
@@ -325,8 +325,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getEmail.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
@@ -341,8 +341,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getSalt.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getSalt() {
|
||||
return this.salt;
|
||||
}
|
||||
@@ -357,8 +357,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method getHash.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getHash() {
|
||||
if (Settings.getPasswordHash == HashAlgorithm.MD5VB) {
|
||||
if (salt != null && !salt.isEmpty() && Settings.getPasswordHash == HashAlgorithm.MD5VB) {
|
||||
@@ -371,8 +371,8 @@ public class PlayerAuth {
|
||||
/**
|
||||
* Method equals.
|
||||
* @param obj Object
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof PlayerAuth)) {
|
||||
@@ -384,8 +384,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method hashCode.
|
||||
* @return int
|
||||
*/
|
||||
|
||||
* @return int */
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hashCode = 7;
|
||||
@@ -396,8 +396,8 @@ public class PlayerAuth {
|
||||
|
||||
/**
|
||||
* Method toString.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
@Override
|
||||
public String toString() {
|
||||
return ("Player : " + nickname + " | " + realName
|
||||
|
||||
+10
-10
@@ -41,8 +41,8 @@ public class PlayerCache {
|
||||
/**
|
||||
* Method isAuthenticated.
|
||||
* @param user String
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean isAuthenticated(String user) {
|
||||
return cache.containsKey(user.toLowerCase());
|
||||
}
|
||||
@@ -50,16 +50,16 @@ public class PlayerCache {
|
||||
/**
|
||||
* Method getAuth.
|
||||
* @param user String
|
||||
* @return PlayerAuth
|
||||
*/
|
||||
|
||||
* @return PlayerAuth */
|
||||
public PlayerAuth getAuth(String user) {
|
||||
return cache.get(user.toLowerCase());
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getInstance.
|
||||
* @return PlayerCache
|
||||
*/
|
||||
|
||||
* @return PlayerCache */
|
||||
public static PlayerCache getInstance() {
|
||||
if (singleton == null) {
|
||||
singleton = new PlayerCache();
|
||||
@@ -69,16 +69,16 @@ public class PlayerCache {
|
||||
|
||||
/**
|
||||
* Method getLogged.
|
||||
* @return int
|
||||
*/
|
||||
|
||||
* @return int */
|
||||
public int getLogged() {
|
||||
return cache.size();
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getCache.
|
||||
* @return ConcurrentHashMap<String,PlayerAuth>
|
||||
*/
|
||||
|
||||
* @return ConcurrentHashMap<String,PlayerAuth> */
|
||||
public ConcurrentHashMap<String, PlayerAuth> getCache() {
|
||||
return this.cache;
|
||||
}
|
||||
|
||||
@@ -22,24 +22,24 @@ public class DataFileCache {
|
||||
|
||||
/**
|
||||
* Method getGroup.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getGroup() {
|
||||
return group;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getOperator.
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean getOperator() {
|
||||
return operator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method isFlying.
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean isFlying() {
|
||||
return flying;
|
||||
}
|
||||
|
||||
+10
-10
@@ -78,8 +78,8 @@ public class JsonCache {
|
||||
/**
|
||||
* Method readCache.
|
||||
* @param player Player
|
||||
* @return DataFileCache
|
||||
*/
|
||||
|
||||
* @return DataFileCache */
|
||||
public DataFileCache readCache(Player player) {
|
||||
String path;
|
||||
try {
|
||||
@@ -110,8 +110,8 @@ public class JsonCache {
|
||||
* @param dataFileCache DataFileCache
|
||||
* @param type Type
|
||||
* @param jsonSerializationContext JsonSerializationContext
|
||||
* @return JsonElement
|
||||
*/
|
||||
|
||||
* @return JsonElement */
|
||||
@Override
|
||||
public JsonElement serialize(DataFileCache dataFileCache, Type type, JsonSerializationContext jsonSerializationContext) {
|
||||
JsonObject jsonObject = new JsonObject();
|
||||
@@ -131,10 +131,10 @@ public class JsonCache {
|
||||
* @param jsonElement JsonElement
|
||||
* @param type Type
|
||||
* @param jsonDeserializationContext JsonDeserializationContext
|
||||
* @return DataFileCache
|
||||
* @throws JsonParseException
|
||||
* @see com.google.gson.JsonDeserializer#deserialize(JsonElement, Type, JsonDeserializationContext)
|
||||
*/
|
||||
|
||||
|
||||
|
||||
* @return DataFileCache * @throws JsonParseException * @see com.google.gson.JsonDeserializer#deserialize(JsonElement, Type, JsonDeserializationContext) */
|
||||
@Override
|
||||
public DataFileCache deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
||||
JsonObject jsonObject = jsonElement.getAsJsonObject();
|
||||
@@ -183,8 +183,8 @@ public class JsonCache {
|
||||
/**
|
||||
* Method doesCacheExist.
|
||||
* @param player Player
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean doesCacheExist(Player player) {
|
||||
String path;
|
||||
try {
|
||||
|
||||
@@ -105,8 +105,8 @@ public class LimboCache {
|
||||
/**
|
||||
* Method getLimboPlayer.
|
||||
* @param name String
|
||||
* @return LimboPlayer
|
||||
*/
|
||||
|
||||
* @return LimboPlayer */
|
||||
public LimboPlayer getLimboPlayer(String name) {
|
||||
return cache.get(name);
|
||||
}
|
||||
@@ -114,16 +114,16 @@ public class LimboCache {
|
||||
/**
|
||||
* Method hasLimboPlayer.
|
||||
* @param name String
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean hasLimboPlayer(String name) {
|
||||
return cache.containsKey(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getInstance.
|
||||
* @return LimboCache
|
||||
*/
|
||||
|
||||
* @return LimboCache */
|
||||
public static LimboCache getInstance() {
|
||||
if (singleton == null) {
|
||||
singleton = new LimboCache(AuthMe.getInstance());
|
||||
|
||||
+16
-16
@@ -48,40 +48,40 @@ public class LimboPlayer {
|
||||
|
||||
/**
|
||||
* Method getName.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getLoc.
|
||||
* @return Location
|
||||
*/
|
||||
|
||||
* @return Location */
|
||||
public Location getLoc() {
|
||||
return loc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getGameMode.
|
||||
* @return GameMode
|
||||
*/
|
||||
|
||||
* @return GameMode */
|
||||
public GameMode getGameMode() {
|
||||
return gameMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getOperator.
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean getOperator() {
|
||||
return operator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getGroup.
|
||||
* @return String
|
||||
*/
|
||||
|
||||
* @return String */
|
||||
public String getGroup() {
|
||||
return group;
|
||||
}
|
||||
@@ -98,8 +98,8 @@ public class LimboPlayer {
|
||||
|
||||
/**
|
||||
* Method getTimeoutTaskId.
|
||||
* @return BukkitTask
|
||||
*/
|
||||
|
||||
* @return BukkitTask */
|
||||
public BukkitTask getTimeoutTaskId() {
|
||||
return timeoutTaskId;
|
||||
}
|
||||
@@ -116,16 +116,16 @@ public class LimboPlayer {
|
||||
|
||||
/**
|
||||
* Method getMessageTaskId.
|
||||
* @return BukkitTask
|
||||
*/
|
||||
|
||||
* @return BukkitTask */
|
||||
public BukkitTask getMessageTaskId() {
|
||||
return messageTaskId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method isFlying.
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
* @return boolean */
|
||||
public boolean isFlying() {
|
||||
return flying;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user