Class PunishmentBuilder
java.lang.Object
de.jvstvshd.necrify.common.punishment.PunishmentBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildBan()Builds a kick punishment.de.jvstvshd.necrify.api.duration.PunishmentDurationduration()static PunishmentBuildernewBuilder(AbstractNecrifyPlugin plugin) net.kyori.adventure.text.Componentreason()de.jvstvshd.necrify.api.punishment.Punishmentde.jvstvshd.necrify.api.user.NecrifyUseruser()withCreationTime(LocalDateTime creationTime) withDuration(de.jvstvshd.necrify.api.duration.PunishmentDuration duration) withPunishmentUuid(UUID punishmentUuid) withReason(net.kyori.adventure.text.Component reason) withSuccessor(de.jvstvshd.necrify.api.punishment.Punishment successor) withUser(de.jvstvshd.necrify.api.user.NecrifyUser user)
-
Constructor Details
-
PunishmentBuilder
-
-
Method Details
-
newBuilder
-
user
public de.jvstvshd.necrify.api.user.NecrifyUser user() -
withUser
-
reason
public net.kyori.adventure.text.Component reason() -
withReason
-
duration
public de.jvstvshd.necrify.api.duration.PunishmentDuration duration() -
withDuration
-
punishmentUuid
-
withPunishmentUuid
-
successor
public de.jvstvshd.necrify.api.punishment.Punishment successor() -
withSuccessor
-
creationTime
-
withCreationTime
-
buildBan
-
buildKick
- Returns:
- The kick punishment.
-
buildMute
-