public interface TemporaryPunishmentInterface extends PunishmentInterface
| Modifier and Type | Method and Description |
|---|---|
Long |
getEnd()
Calculates and returns the end of the punishment based on the start and length values
|
Long |
getLength()
Get the length of the punishment in Milliseconds
|
boolean |
hasEnded()
Uses the
getEnd() method to check if the punishment has ended |
void |
setLength(Long length)
Set the length of this punishment
This is primarily used for warnings where the length is based on a config value
|
createPunishment, getAction, getActioned, getAppliedBy, getAppliedTo, getReason, getStart, getType, getUndo, isShadow, reversePunishmentLong getLength()
void setLength(Long length)
length - The length of time that this punishment will last (in Milliseconds)Long getEnd()
boolean hasEnded()
getEnd() method to check if the punishment has endedCopyright © 2021. All rights reserved.