Uses of Enum Class
space.arim.libertybans.api.PunishmentType
Packages that use PunishmentType
Package
Description
The base of the LibertyBans API.
Defines standard events.
Defines API for drafting punishments as well as punishments themselves.
-
Uses of PunishmentType in space.arim.libertybans.api
Subclasses with type arguments of type PunishmentType in space.arim.libertybans.apiMethods in space.arim.libertybans.api that return PunishmentTypeModifier and TypeMethodDescriptionstatic PunishmentTypeReturns the enum constant of this class with the specified name.static PunishmentType[]PunishmentType.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of PunishmentType in space.arim.libertybans.api.event
Methods in space.arim.libertybans.api.event that return PunishmentTypeModifier and TypeMethodDescriptionPardonEvent.getPunishmentType()Gets the type of the punishment the victim is being pardoned for -
Uses of PunishmentType in space.arim.libertybans.api.formatter
Methods in space.arim.libertybans.api.formatter with parameters of type PunishmentTypeModifier and TypeMethodDescriptionPunishmentFormatter.formatPunishmentType(PunishmentType type) Formats a punishment type according to the configurationPunishmentFormatter.formatPunishmentTypeVerb(PunishmentType type) Formats a punishment type as a verb according to the configuration -
Uses of PunishmentType in space.arim.libertybans.api.punish
Methods in space.arim.libertybans.api.punish that return PunishmentTypeModifier and TypeMethodDescriptionPunishmentBase.getType()Gets the type of the punishmentPunishmentDetailsCalculator.CalculationResult.type()Returns the value of thetyperecord component.Methods in space.arim.libertybans.api.punish that return types with arguments of type PunishmentTypeModifier and TypeMethodDescriptionRevocationOrder.getType()Gets the punishment type of the punishment which will be revoked, or none if the type is not knownMethods in space.arim.libertybans.api.punish with parameters of type PunishmentTypeModifier and TypeMethodDescriptionPunishmentRevoker.revokeByIdAndType(long id, PunishmentType type) Gets aRevocationOrderto undo a punishment by its ID and type.PunishmentRevoker.revokeByTypeAndPossibleVictims(PunishmentType type, List<Victim> victims) Gets aRevocationOrderto undo a punishment by its type and victim, trying multiple victims until one of them is found to be punished.PunishmentRevoker.revokeByTypeAndVictim(PunishmentType type, Victim victim) Gets aRevocationOrderto undo a punishment by its type and victim.DraftPunishmentBuilder.type(PunishmentType type) Sets the punishment type of this builder to the specified one.Constructors in space.arim.libertybans.api.punish with parameters of type PunishmentTypeModifierConstructorDescriptionCalculationResult(PunishmentType type, String reason, Duration duration, ServerScope scope) Creates -
Uses of PunishmentType in space.arim.libertybans.api.select
Methods in space.arim.libertybans.api.select that return types with arguments of type PunishmentTypeModifier and TypeMethodDescriptionSelectionBase.getTypes()Gets the punishment types matchedSelectionOrder.getTypes()Methods in space.arim.libertybans.api.select with parameters of type PunishmentTypeModifier and TypeMethodDescriptionspace.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<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.getHistoricalPunishmentByIdAndType(long id, PunishmentType type) Gets a historical punishment matching a specific ID and type, if a punishment with such ID and typeexists.default BSelectionBuilderBase.type(PunishmentType type) Sets the punishment type matched.default SelectionOrderBuilderSelectionOrderBuilder.type(PunishmentType type) Method parameters in space.arim.libertybans.api.select with type arguments of type PunishmentTypeModifier and TypeMethodDescriptionSelectionBuilderBase.types(SelectionPredicate<PunishmentType> types) Sets the punishment types matched.SelectionOrderBuilder.types(SelectionPredicate<PunishmentType> types) -
Uses of PunishmentType in space.arim.libertybans.api.user
Methods in space.arim.libertybans.api.user that return types with arguments of type PunishmentTypeModifier and TypeMethodDescriptionAltDetectionQuery.punishmentTypes()The punishment types to scan alts forMethods in space.arim.libertybans.api.user with parameters of type PunishmentTypeModifier and TypeMethodDescriptionbooleanAltAccount.hasActivePunishment(PunishmentType type) Whether the alt account has ANY active punishments of the specified typedefault AltDetectionQuery.BuilderAltDetectionQuery.Builder.punishmentTypes(PunishmentType... types) The punishment types to scan alts for.Method parameters in space.arim.libertybans.api.user with type arguments of type PunishmentTypeModifier and TypeMethodDescriptionAltDetectionQuery.Builder.punishmentTypes(Set<PunishmentType> types) The punishment types to scan alts for.