public interface BanLogsStorage
Implementations must not retain any state since they can be replaced at any time, caching is fine as long as it does not require saving cached values implicitly.
Modifier and Type | Method and Description |
---|---|
List<Ban> |
load(UUID playerId)
Loads logged bans into a mutable list.
|
void |
save(Ban ban)
Adds a new entry in the bans log.
|
List<Ban> load(UUID playerId)
playerId
- the UUID of a player.void save(Ban ban)
ban
- the new entry ot add