Interface PunishEvent
- All Superinterfaces:
space.arim.omnibus.events.AsyncEvent, BasePunishEvent<DraftPunishment>, space.arim.omnibus.events.Cancellable, space.arim.omnibus.events.Event
Called when a staff member is enacting a punishment with standard punishment commands (/ban, /mute, etc.)
For intercepting punishments created by layouts, see
CalculatedPunishEvent-
Method Summary
Modifier and TypeMethodDescriptiondefault DraftPunishmentDeprecated.default voidsetDraftPunishment(DraftPunishment draftPunishment) Deprecated.The equivalent setterBasePunishEvent.setDraftSanction(DraftSanction)should be preferredMethods inherited from interface BasePunishEvent
getDraftSanction, setDraftSanctionMethods inherited from interface space.arim.omnibus.events.Cancellable
cancel, isCancelled
-
Method Details
-
getDraftPunishment
Deprecated.The equivalent getterBasePunishEvent.getDraftSanction()should be preferredGets the draft punishment which will be put into place.
The draft punishment includes the operator who is enacting this punishment, the victim who is being punished, and several other details.- Returns:
- the draft punishment
-
setDraftPunishment
Deprecated.The equivalent setterBasePunishEvent.setDraftSanction(DraftSanction)should be preferredSets the draft punishment which will be put into place.
The draft punishment includes the operator who is enacting this punishment, the victim who is being punished, and several other details.- Parameters:
draftPunishment- the new draft punishment
-
BasePunishEvent.getDraftSanction()should be preferred