Class NecrifyBan

All Implemented Interfaces:
de.jvstvshd.necrify.api.punishment.Ban, de.jvstvshd.necrify.api.punishment.Punishment, de.jvstvshd.necrify.api.punishment.TemporalPunishment, de.jvstvshd.necrify.api.punishment.util.ReasonHolder

public class NecrifyBan extends AbstractTemporalPunishment implements de.jvstvshd.necrify.api.punishment.Ban
  • Constructor Details

    • NecrifyBan

      public NecrifyBan(de.jvstvshd.necrify.api.user.NecrifyUser user, net.kyori.adventure.text.Component reason, UUID punishmentUuid, de.jvstvshd.necrify.api.duration.PunishmentDuration duration, AbstractNecrifyPlugin plugin, de.jvstvshd.necrify.api.punishment.Punishment successor, LocalDateTime issuedAt)
  • Method Details

    • applyPunishment

      public CompletableFuture<de.jvstvshd.necrify.api.punishment.Punishment> applyPunishment() throws de.jvstvshd.necrify.api.PunishmentException
      Overrides:
      applyPunishment in class AbstractTemporalPunishment
      Throws:
      de.jvstvshd.necrify.api.PunishmentException
    • createFullReason

      @NotNull public @NotNull net.kyori.adventure.text.Component createFullReason(@Nullable @Nullable Locale locale)
      Specified by:
      createFullReason in interface de.jvstvshd.necrify.api.punishment.util.ReasonHolder
    • isPermanent

      public boolean isPermanent()
      Specified by:
      isPermanent in interface de.jvstvshd.necrify.api.punishment.TemporalPunishment
    • getType

      @NotNull public @NotNull de.jvstvshd.necrify.api.punishment.StandardPunishmentType getType()
      Specified by:
      getType in interface de.jvstvshd.necrify.api.punishment.Punishment
      Specified by:
      getType in class AbstractTemporalPunishment