PunishmentEvent Class
Introduction
The PunishmentEvent
class represents an event that is triggered when a punishment is applied to a player.
Methods
This class extends UserCancellableEvent
and adds methods related to punishments.
type
PunishmentType type();
Description:
Gets the type of punishment that was applied.
Returns:
The PunishmentType of the punishment.
reason
String reason();
Description:
Gets the reason for the punishment.
Returns:
The reason as a String
.