Interface PunishmentView
public interface PunishmentView
Read-only view of a Plex punishment.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns whether the punishment is currently active.@Nullable ZonedDateTimeendDate()Returns the punishment end date.@Nullable Stringip()Returns the IP address associated with the punished player.Returns the date and time when the punishment was issued.punished()Returns the UUID of the punished player.@Nullable UUIDpunisher()Returns the UUID of the actor who issued the punishment.Returns the resolved display name for the punishment actor.@Nullable StringReturns the source-specific punisher reference.reason()Returns the punishment reason.source()Returns the source that issued the punishment.type()Returns the punishment type.
-
Method Details
-
punished
-
punisher
Returns the UUID of the actor who issued the punishment.- Returns:
- UUID of the actor who issued the punishment
-
source
-
punisherReference
Returns the source-specific punisher reference.- Returns:
- punisher reference, or
nullwhen not applicable
-
punisherDisplayName
String punisherDisplayName()Returns the resolved display name for the punishment actor.- Returns:
- display name for the punishment actor
-
ip
Returns the IP address associated with the punished player.- Returns:
- IP address associated with the punished player
-
type
-
reason
-
active
boolean active()Returns whether the punishment is currently active.- Returns:
- whether the punishment is currently active
-
issueDate
ZonedDateTime issueDate()Returns the date and time when the punishment was issued.- Returns:
- date and time when the punishment was issued
-
endDate
Returns the punishment end date.- Returns:
- punishment end date, or
nullfor punishments without an end date
-