public class Punishment extends Object
Constructor and Description |
---|
Punishment(String name,
String uuid,
String reason,
String operator,
PunishmentType type,
long start,
long end,
String calculation,
int id) |
Modifier and Type | Method and Description |
---|---|
void |
create() |
void |
create(boolean silent) |
static void |
create(String name,
String target,
String reason,
String operator,
PunishmentType type,
Long end,
String calculation,
boolean silent) |
void |
delete() |
void |
delete(String who,
boolean massClear,
boolean removeCache) |
String |
getCalculation() |
String |
getDate(long date) |
String |
getDuration(boolean fromStart) |
long |
getEnd() |
String |
getHexId() |
int |
getId() |
List<String> |
getLayout() |
String |
getLayoutBSN() |
String |
getName() |
String |
getOperator() |
String |
getReason() |
long |
getStart() |
PunishmentType |
getType() |
String |
getUuid() |
boolean |
isExpired() |
String |
toString() |
void |
updateReason(String reason) |
public static void create(String name, String target, String reason, String operator, PunishmentType type, Long end, String calculation, boolean silent)
public String getName()
public String getUuid()
public String getReason()
public String getOperator()
public String getCalculation()
public long getStart()
public long getEnd()
public PunishmentType getType()
public int getId()
public String getHexId()
public String getDate(long date)
public void create()
public void create(boolean silent)
public void updateReason(String reason)
public void delete()
public void delete(String who, boolean massClear, boolean removeCache)
public String getDuration(boolean fromStart)
public String getLayoutBSN()
public boolean isExpired()
Copyright © 2020. All rights reserved.