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)
BanLogsStorage
load
in interface BanLogsStorage
playerId
- the UUID of a player.public void save(Ban ban)
BanLogsStorage
save
in interface BanLogsStorage
ban
- the new entry ot addprotected Path getLoadBanDir()