Uses of Interface
space.arim.libertybans.api.punish.Punishment
Packages that use Punishment
Package
Description
Defines standard events.
Defines API for drafting punishments as well as punishments themselves.
-
Uses of Punishment in space.arim.libertybans.api.event
Methods in space.arim.libertybans.api.event that return PunishmentModifier and TypeMethodDescriptionPostOpNotificationEvent.getPunishment()Gets the punishment involved in the eventPostPardonEvent.getPunishment()Gets the punishment revokedPostPunishEvent.getPunishment()Gets the punishment which was put into place. -
Uses of Punishment in space.arim.libertybans.api.punish
Methods in space.arim.libertybans.api.punish that return types with arguments of type PunishmentModifier and TypeMethodDescriptiondefault space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> DraftPunishment.enactPunishment()space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> DraftPunishment.enactPunishment(EnforcementOptions enforcementOptions) default space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> DraftSanction.enactPunishment()Enacts this sanction, adding it to the database as a punishment, then enforces it.space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> DraftSanction.enactPunishment(EnforcementOptions enforcementOptions) Enacts this sanction, adding it to the database as a punishment, then enforces it according to the given options.space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> Punishment.modifyPunishment(Consumer<PunishmentEditor> editorConsumer) Modifies this punishment and yields the new instance.default space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> RevocationOrder.undoAndGetPunishment()Revokes the punishment matching this revocation order, "unenforces" it, and gets the punishment revoked.space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> RevocationOrder.undoAndGetPunishment(EnforcementOptions enforcementOptions) Revokes the punishment matching this revocation order, "unenforces" it according to the given options, and gets the punishment revoked. -
Uses of Punishment in space.arim.libertybans.api.select
Methods in space.arim.libertybans.api.select that return types with arguments of type PunishmentModifier and TypeMethodDescriptionspace.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> PunishmentSelector.getActivePunishmentById(long id) Gets an active punishment matching a specific ID, if a punishment with such ID exists.space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> PunishmentSelector.getActivePunishmentByIdAndType(long id, PunishmentType type) Gets an active punishment matching a specific ID and type, if one exists with matching type and ID.default space.arim.omnibus.util.concurrent.ReactionStage<List<Punishment>> SelectionBase.getAllSpecificPunishments()Gets all punishments matching this selection.space.arim.omnibus.util.concurrent.ReactionStage<List<Punishment>> SelectionBase.getAllSpecificPunishments(SortPunishments... ordering) Gets all punishments matching this selection, ordered in the specified fashion.default space.arim.omnibus.util.concurrent.ReactionStage<List<Punishment>> SelectionOrder.getAllSpecificPunishments()default space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> PunishmentSelector.getApplicablePunishment(UUID uuid, NetworkAddress address, PunishmentType type) Gets the first punishment, of a certain type, which is applicable to a UUID and IP address, where the UUID and address typically represent a connected player.space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> PunishmentSelector.getCachedMute(UUID uuid, NetworkAddress address) Gets a cached mute for an online player, including the player's UUID and address.default space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> SelectionBase.getFirstSpecificPunishment()Gets the first punishment matching this selection.space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> SelectionBase.getFirstSpecificPunishment(SortPunishments... prioritization) Gets the first punishment matching this selection.default space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> SelectionOrder.getFirstSpecificPunishment()space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> PunishmentSelector.getHistoricalPunishmentById(long id) Gets a historical punishment matching a specific ID, if a punishment with such ID exists.space.arim.omnibus.util.concurrent.ReactionStage<Optional<Punishment>> PunishmentSelector.getHistoricalPunishmentByIdAndType(long id, PunishmentType type) Gets a historical punishment matching a specific ID and type, if a punishment with such ID and typeexists.