public final class Warn extends Object
Constructor and Description |
---|
Warn(int id,
UUID playerId,
String reason,
String warnedByName,
SanctionnerType banType,
@Nullable String ip,
long executionTime,
boolean active,
long revocationTime,
String revocationBy) |
Warn(UUID playerId,
String reason,
String warnedByName,
SanctionnerType banType,
@Nullable String ip,
long executionTime) |
Modifier and Type | Method and Description |
---|---|
static Warn |
active(UUID playerId,
String reason,
String bannedBy,
SanctionnerType banType,
long expirationTime,
String ip) |
static Warn |
activeFrom(Warn from) |
boolean |
equals(Object o) |
static Warn |
from(Warn from) |
long |
getExecutionTime() |
int |
getId() |
@Nullable String |
getIp() |
UUID |
getPlayerId() |
String |
getReason() |
@Nullable String |
getRevocationBy() |
@Nullable String |
getRevocationByName() |
long |
getRevocationTime() |
SanctionnerType |
getSanctionnerType() |
String |
getWarnedBy() |
String |
getWarnedByName() |
UUID |
getWarnedByUUID()
Get UUID of staff that warned
|
int |
hashCode() |
boolean |
isActive() |
boolean |
isSaved() |
static Warn |
revokedFrom(Warn from,
long revocationTime,
String revoker) |
public Warn(UUID playerId, String reason, String warnedByName, SanctionnerType banType, @Nullable String ip, long executionTime)
public int getId()
public boolean isSaved()
public UUID getPlayerId()
public String getReason()
public String getWarnedBy()
public UUID getWarnedByUUID()
public String getWarnedByName()
public SanctionnerType getSanctionnerType()
public @Nullable String getIp()
public long getExecutionTime()
public long getRevocationTime()
public boolean isActive()
public @Nullable String getRevocationBy()
public @Nullable String getRevocationByName()