Package dev.plex.punishment
Class Punishment
java.lang.Object
dev.plex.punishment.Punishment
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final Stringprivate booleanprivate ZonedDateTimeprivate static final com.google.gson.Gsonprivate Stringprivate final @NotNull UUIDprivate Stringprivate final UUIDprivate Stringprivate PunishmentType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Punishmentstatic net.kyori.adventure.text.ComponentgenerateBanMessage(Punishment punishment) static net.kyori.adventure.text.Componentstatic net.kyori.adventure.text.ComponentgenerateIndefBanMessageWithReason(String type, String reason) static net.kyori.adventure.text.ComponentgenerateKickMessage(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
-