public class FileNegativityAccountStorage extends NegativityAccountStorage
Constructor and Description |
---|
FileNegativityAccountStorage(File userDir) |
Modifier and Type | Method and Description |
---|---|
List<UUID> |
getPlayersOnIP(String ip) |
CompletableFuture<NegativityAccount> |
loadAccount(UUID playerId) |
CompletableFuture<Void> |
saveAccount(NegativityAccount account) |
getOrCreateAccount, getStorage, getStorageId, init, register, setDefaultStorage, setStorageId
public FileNegativityAccountStorage(File userDir)
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