public abstract class NegativityAccountStorage extends Object
Constructor and Description |
---|
NegativityAccountStorage() |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<NegativityAccount> |
getOrCreateAccount(UUID playerId) |
abstract List<UUID> |
getPlayersOnIP(String ip) |
static NegativityAccountStorage |
getStorage() |
static String |
getStorageId() |
static void |
init() |
abstract CompletableFuture<NegativityAccount> |
loadAccount(UUID playerId) |
static void |
register(String id,
NegativityAccountStorage storage) |
abstract CompletableFuture<Void> |
saveAccount(NegativityAccount account) |
static void |
setDefaultStorage(String storageId) |
static void |
setStorageId(String storageId) |
public abstract CompletableFuture<NegativityAccount> loadAccount(UUID playerId)
public abstract CompletableFuture<Void> saveAccount(NegativityAccount account)
public CompletableFuture<NegativityAccount> getOrCreateAccount(UUID playerId)
public static NegativityAccountStorage getStorage()
public static void register(String id, NegativityAccountStorage storage)
public static String getStorageId()
public static void setStorageId(String storageId)
public static void setDefaultStorage(String storageId)
public static void init()