Interface PostPardonEvent
- All Superinterfaces:
space.arim.omnibus.events.AsyncEvent, space.arim.omnibus.events.Event, PostOpNotificationEvent
public interface PostPardonEvent
extends space.arim.omnibus.events.AsyncEvent, PostOpNotificationEvent
Called once a punishment has been revoked
- Author:
- A248
-
Method Summary
Modifier and TypeMethodDescriptionGets the staff member who revoked the punishmentGets the punishment revokedThe command line target of the removal.default booleanisSilent()If the punishment was removed silently.
-
Method Details
-
getOperator
Operator getOperator()Gets the staff member who revoked the punishment- Returns:
- the operator responsible for the pardon
-
getPunishment
Punishment getPunishment()Gets the punishment revoked- Specified by:
getPunishmentin interfacePostOpNotificationEvent- Returns:
- the punishment which was revoked
-
getTarget
The command line target of the removal.This is not necessarily the same as the punished victim (
PunishmentBase.getVictim()), but rather the string argument interpreted to mean it. In some contexts this argument will be unavailable; for example, removing a punishment by its ID alone has no target argument.- Specified by:
getTargetin interfacePostOpNotificationEvent- Returns:
- the targeted user (victim name) on the command line, if available
-
isSilent
default boolean isSilent()If the punishment was removed silently.- Specified by:
isSilentin interfacePostOpNotificationEvent- Returns:
- true if silent
-