Class Punishment

java.lang.Object
dev.plex.punishment.Punishment

@Entity public class Punishment extends Object
  • Field Details

    • banUrl

      private static final String banUrl
    • punished

      private final UUID punished
    • punisher

      private final UUID punisher
    • ip

      private String ip
    • punishedUsername

      private String punishedUsername
    • type

      private PunishmentType type
    • reason

      private String reason
    • customTime

      private boolean customTime
    • active

      private boolean active
    • endDate

      private ZonedDateTime endDate
  • Constructor Details

    • Punishment

      public Punishment()
    • Punishment

      public Punishment(UUID punished, UUID punisher)
  • Method Details

    • generateBanMessage

      public static net.kyori.adventure.text.Component generateBanMessage(Punishment punishment)
    • generateIndefBanMessage

      public static net.kyori.adventure.text.Component generateIndefBanMessage(String type)
    • fromJson

      public static Punishment fromJson(String json)
    • toJSON

      public String toJSON()