public interface PunishmentInterface
| Modifier and Type | Method and Description |
|---|---|
void |
createPunishment()
Creates the punishment in the database and adds it to the punishment manager,
This may not implement the punishment in all cases (e.g.
|
String |
getAction()
Returns the name of the punishment, e.g.
|
String |
getActioned()
Returns the action this punishment makes e.g.
|
UUID |
getAppliedBy()
Get the UUID of the user who applied the punishment
|
UUID |
getAppliedTo()
Get the UUID of the player the punishment has been applied to
|
String |
getReason()
Get the reason for this punishment
|
Long |
getStart()
Get the system time when the punishment started
|
PunishmentType |
getType()
Get the type of punishment that this punishment object represents
e.g.
|
String |
getUndo()
Returns the undoing action for this punishment e.g.
|
boolean |
isShadow()
Is the punishment shadow, shadow punishments will not notify the player in any way
|
void |
reversePunishment()
Reverse the punishment
This will disable the effects of the punishment and remove it from the database and history
|
PunishmentType getType()
PunishmentType.BanPunishmentType for this punishmentUUID getAppliedTo()
UUID getAppliedBy()
String getReason()
boolean isShadow()
Long getStart()
void createPunishment()
void reversePunishment()
String getActioned()
String getUndo()
String getAction()
Copyright © 2021. All rights reserved.