Class Punishment

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

public class Punishment extends Object
  • Field Details

    • gson

      private static final com.google.gson.Gson gson
    • banUrl

      private static final String banUrl
    • punished

      @NotNull private final @NotNull 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)
    • generateKickMessage

      public static net.kyori.adventure.text.Component generateKickMessage (Punishment punishment)
    • generateIndefBanMessageWithReason

      public static net.kyori.adventure.text.Component generateIndefBanMessageWithReason (String type, String reason)
    • generateIndefBanMessage

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

      public static Punishment fromJson (String json)
    • toJSON

      public String toJSON()