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