public class DatabaseBanLogsStorage extends Object implements BanLogsStorage
Constructor and Description |
---|
DatabaseBanLogsStorage() |
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.
|
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 add