| Modifier and Type | Method and Description |
|---|---|
PunishmentInterface |
LapisBansAPI.createPunishment(PunishmentType type,
UUID appliedTo,
UUID appliedBy,
String reason,
boolean isShadow,
boolean isTemp,
Long start,
Long length)
Generate and return a punishment
|
| Modifier and Type | Method and Description |
|---|---|
List<PunishmentInterface> |
LapisBansAPI.getAllActivePunishments(UUID uuid)
Get all currently active punishments applied to a player, this excludes punishments that have ended
|
List<PunishmentInterface> |
LapisBansAPI.getAllPunishments(UUID uuid)
Get all punishments applied to a UUID, this includes punishments that have ended e.g.
|
List<PunishmentInterface> |
LapisBansAPI.getPunishmentsAppliedBy(UUID uuid)
Get all punishments applied by a user, these are punishments set by the provided UUID
|
| Modifier and Type | Method and Description |
|---|---|
PunishmentInterface |
LapisBansPunishEvent.getPunishment() |
| Constructor and Description |
|---|
LapisBansPunishEvent(PunishmentInterface punishment) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TemporaryPunishmentInterface
Represents a punishment with an end time
|
| Modifier and Type | Method and Description |
|---|---|
PunishmentInterface |
PunishmentList.get(Integer index)
Get the punishment at any index
|
| Modifier and Type | Method and Description |
|---|---|
List<PunishmentInterface> |
PunishmentList.getAsList()
Get the
PunishmentInterface's currently stored as a List |
| Modifier and Type | Method and Description |
|---|---|
void |
PunishmentList.add(PunishmentInterface punishment)
Add a
PunishmentInterface to the list |
void |
PunishmentList.remove(PunishmentInterface punishment)
Remove a
PunishmentInterface from the list |
| Modifier and Type | Method and Description |
|---|---|
void |
PunishmentList.addAll(Collection<PunishmentInterface> punishments)
Add multiple vales at once
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BanInterface
Represents a ban
|
interface |
IPBanInterface
Represents an IP address ban
|
interface |
KickInterface
Represents a kick
|
interface |
MuteInterface
Represents a mute
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
TempBanInterface
Represents a temporary ban
|
interface |
TempIPBanInterface
Represents a temporary IP address ban
|
interface |
TempMuteInterface
Represents a temporary mute
|
interface |
WarningInterface
Represents a warning
|
Copyright © 2019. All rights reserved.