Record Class Command.Ban
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Command.Ban
- All Implemented Interfaces:
CommandSetting, CooldownConfigSetting, EnableSetting, SoundConfigSetting
- Enclosing class:
Command
public static record Command.Ban(Boolean enable, Boolean filterByServer, Boolean suggestOfflinePlayers, Boolean showConnectionAttempts, Boolean checkGroupWeight, Boolean checkDuplicate, Range range, Map<Integer,Long> timeLimits, Command.ReasonTimeMap reasonTimes, List<String> aliases, Destination destination, Cooldown cooldown, Sound sound)
extends Record
implements CommandSetting, CooldownConfigSetting, SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBan(Boolean enable, Boolean filterByServer, Boolean suggestOfflinePlayers, Boolean showConnectionAttempts, Boolean checkGroupWeight, Boolean checkDuplicate, Range range, Map<Integer, Long> timeLimits, Command.ReasonTimeMap reasonTimes, List<String> aliases, Destination destination, Cooldown cooldown, Sound sound) Creates an instance of aBanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.static Command.Ban.BanBuilderbuilder()Returns the value of thecheckDuplicaterecord component.Returns the value of thecheckGroupWeightrecord component.cooldown()Returns the value of thecooldownrecord component.Returns the value of thedestinationrecord component.enable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefilterByServerrecord component.final inthashCode()Returns a hash code value for this object.range()Returns the value of therangerecord component.Returns the value of thereasonTimesrecord component.Returns the value of theshowConnectionAttemptsrecord component.sound()Returns the value of thesoundrecord component.Returns the value of thesuggestOfflinePlayersrecord component.Returns the value of thetimeLimitsrecord component.final StringtoString()Returns a string representation of this record class.withAliases(List<String> aliases) withCheckDuplicate(Boolean checkDuplicate) withCheckGroupWeight(Boolean checkGroupWeight) withCooldown(Cooldown cooldown) withDestination(Destination destination) withEnable(Boolean enable) withFilterByServer(Boolean filterByServer) withReasonTimes(Command.ReasonTimeMap reasonTimes) withShowConnectionAttempts(Boolean showConnectionAttempts) withSuggestOfflinePlayers(Boolean suggestOfflinePlayers) withTimeLimits(Map<Integer, Long> timeLimits)
-
Constructor Details
-
Ban
public Ban(Boolean enable, Boolean filterByServer, Boolean suggestOfflinePlayers, Boolean showConnectionAttempts, Boolean checkGroupWeight, Boolean checkDuplicate, Range range, Map<Integer, Long> timeLimits, Command.ReasonTimeMap reasonTimes, List<String> aliases, Destination destination, Cooldown cooldown, Sound sound) Creates an instance of aBanrecord class.- Parameters:
enable- the value for theenablerecord componentfilterByServer- the value for thefilterByServerrecord componentsuggestOfflinePlayers- the value for thesuggestOfflinePlayersrecord componentshowConnectionAttempts- the value for theshowConnectionAttemptsrecord componentcheckGroupWeight- the value for thecheckGroupWeightrecord componentcheckDuplicate- the value for thecheckDuplicaterecord componentrange- the value for therangerecord componenttimeLimits- the value for thetimeLimitsrecord componentreasonTimes- the value for thereasonTimesrecord componentaliases- the value for thealiasesrecord componentdestination- the value for thedestinationrecord componentcooldown- the value for thecooldownrecord componentsound- the value for thesoundrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFilterByServer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSuggestOfflinePlayers
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withShowConnectionAttempts
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCheckGroupWeight
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCheckDuplicate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRange
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTimeLimits
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReasonTimes
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAliases
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDestination
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCooldown
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
enable
Returns the value of theenablerecord component.- Specified by:
enablein interfaceEnableSetting- Returns:
- the value of the
enablerecord component
-
filterByServer
Returns the value of thefilterByServerrecord component.- Returns:
- the value of the
filterByServerrecord component
-
suggestOfflinePlayers
Returns the value of thesuggestOfflinePlayersrecord component.- Returns:
- the value of the
suggestOfflinePlayersrecord component
-
showConnectionAttempts
Returns the value of theshowConnectionAttemptsrecord component.- Returns:
- the value of the
showConnectionAttemptsrecord component
-
checkGroupWeight
Returns the value of thecheckGroupWeightrecord component.- Returns:
- the value of the
checkGroupWeightrecord component
-
checkDuplicate
Returns the value of thecheckDuplicaterecord component.- Returns:
- the value of the
checkDuplicaterecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
timeLimits
-
reasonTimes
Returns the value of thereasonTimesrecord component.- Returns:
- the value of the
reasonTimesrecord component
-
aliases
Returns the value of thealiasesrecord component.- Specified by:
aliasesin interfaceCommandSetting- Returns:
- the value of the
aliasesrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
cooldown
Returns the value of thecooldownrecord component.- Specified by:
cooldownin interfaceCooldownConfigSetting- Returns:
- the value of the
cooldownrecord component - See Also:
-
sound
Returns the value of thesoundrecord component.- Specified by:
soundin interfaceSoundConfigSetting- Returns:
- the value of the
soundrecord component - See Also:
-