Class Punishment

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

public class Punishment extends Object
  • Field Details Link icon

    • gson Link icon

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

      private static final String banUrl
    • punished Link icon

      @NotNull private final @NotNull UUID punished
    • punisher Link icon

      private final UUID punisher
    • ip Link icon

      private String ip
    • punishedUsername Link icon

      private String punishedUsername
    • type Link icon

      private PunishmentType type
    • reason Link icon

      private String reason
    • customTime Link icon

      private boolean customTime
    • active Link icon

      private boolean active
    • endDate Link icon

      private ZonedDateTime endDate
  • Constructor Details Link icon

    • Punishment Link icon

      public Punishment()
    • Punishment Link icon

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

    • generateBanMessage Link icon

      public static net.kyori.adventure.text.Component generateBanMessage (Punishment punishment)
    • generateKickMessage Link icon

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

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

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

      public static Punishment fromJson (String json)
    • toJSON Link icon

      public String toJSON()