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 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
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
-
generateIndefBanMessage
-
fromJson
-
toJSON
-