Package dev.plex.punishment
Class Punishment
java.lang.Object
dev.plex.punishment.Punishment
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final String
private boolean
private ZonedDateTime
private static final com.google.gson.Gson
private String
private final @NotNull UUID
private String
private final UUID
private String
private PunishmentType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Punishment
static net.kyori.adventure.text.Component
generateBanMessage
(Punishment punishment) static net.kyori.adventure.text.Component
generateIndefBanMessage
(String type) static net.kyori.adventure.text.Component
generateIndefBanMessageWithReason
(String type, String reason) static net.kyori.adventure.text.Component
generateKickMessage
(Punishment punishment) toJSON()
-
Field Details
-
gson
private static final com.google.gson.Gson gson -
banUrl
-
punished
-
punisher
-
ip
-
punishedUsername
-
type
-
reason
-
customTime
private boolean customTime -
active
private boolean active -
endDate
-
-
Constructor Details
-
Punishment
public Punishment() -
Punishment
-
-
Method Details
-
generateBanMessage
-
generateKickMessage
-
generateIndefBanMessageWithReason
-
generateIndefBanMessage
-
fromJson
-
toJSON
-