public class FileBanLogsStorage extends Object implements BanLogsStorage
| Constructor and Description |
|---|
FileBanLogsStorage(Path storageDir) |
| Modifier and Type | Method and Description |
|---|---|
protected Path |
getLoadBanDir() |
List<Ban> |
load(UUID playerId)
Loads logged bans into a mutable list.
|
void |
save(Ban ban)
Adds a new entry in the bans log.
|
public FileBanLogsStorage(Path storageDir)
public List<Ban> load(UUID playerId)
BanLogsStorageload in interface BanLogsStorageplayerId - the UUID of a player.public void save(Ban ban)
BanLogsStoragesave in interface BanLogsStorageban - the new entry ot addprotected Path getLoadBanDir()