| Package | Description |
|---|---|
| net.lapismc.lapisbans.api | |
| net.lapismc.lapisbans.api.punishments.core |
| 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 |
|---|---|
PunishmentType |
PunishmentInterface.getType()
Get the type of punishment that this punishment object represents
e.g.
|
static PunishmentType |
PunishmentType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PunishmentType[] |
PunishmentType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2021. All rights reserved.