public class LevelDB
extends java.lang.Object
Constructor and Description |
---|
LevelDB() |
Modifier and Type | Method and Description |
---|---|
static boolean |
close()
Closes database connection.
|
static void |
deleteUserData(java.lang.String uuid)
Deletes data for the provided uuid.
|
static java.lang.String |
getUserData(java.lang.String uuid)
Gets the hashed password from DB.
|
static void |
initialize()
Connects to the LevelDB.
|
static boolean |
isClosed()
Tells whether DB connection is closed.
|
static boolean |
isUserRegistered(java.lang.String uuid)
Checks if player is registered.
|
static boolean |
registerUser(java.lang.String uuid,
java.lang.String data)
Deprecated.
|
static void |
saveFromCache(java.util.HashMap<java.lang.String,PlayerCache> playerCacheMap) |
static void |
updateUserData(java.lang.String uuid,
java.lang.String data)
Deprecated.
|
public static void initialize()
public static boolean close()
public static boolean isClosed()
@Deprecated public static boolean registerUser(java.lang.String uuid, java.lang.String data)
uuid
- uuid of the player to insert data fordata
- data to put inside databasepublic static boolean isUserRegistered(java.lang.String uuid)
uuid
- player's uuidpublic static void deleteUserData(java.lang.String uuid)
uuid
- uuid of player to delete data for@Deprecated public static void updateUserData(java.lang.String uuid, java.lang.String data)
uuid
- uuid of the player to update data fordata
- data to put inside databasepublic static java.lang.String getUserData(java.lang.String uuid)
uuid
- uuid of the player to get data for.public static void saveFromCache(java.util.HashMap<java.lang.String,PlayerCache> playerCacheMap)