Interface PunishDialect
- 
public interface PunishDialect- Since:
 - CAC v. 1.0
 - Author:
 - Clientastisch
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetExpire(java.lang.String uniqueId)Returns the Unix time when the ban expiresjava.lang.StringgetReason(java.lang.String uniqueId)Returns the reason for a punishmentjava.lang.StringgetReplay(java.lang.String uniqueId)Returns the replay idbooleanisBanned(java.lang.String uniqueId)Check if the player is bannedvoidpardon(java.lang.String uniqueId)Unban a playervoidpunish(java.lang.String uniqueId, java.lang.String reason, java.lang.String replay, long minutes)Punish a player 
 - 
 
- 
- 
Method Detail
- 
punish
void punish(java.lang.String uniqueId, java.lang.String reason, java.lang.String replay, long minutes)Punish a player- Parameters:
 uniqueId- UUID of the playerreason- reason of the punishmentreplay- replay idminutes- the punish duration
 
- 
pardon
void pardon(java.lang.String uniqueId)
Unban a player- Parameters:
 uniqueId- UUID of the player
 
- 
isBanned
boolean isBanned(java.lang.String uniqueId)
Check if the player is banned- Parameters:
 uniqueId- UUID of the player- Returns:
 - whether the player is banned or not
 
 
- 
getExpire
long getExpire(java.lang.String uniqueId)
Returns the Unix time when the ban expires- Parameters:
 uniqueId- UUID of the player- Returns:
 - the Unix time when the ban expires
 
 
- 
getReplay
java.lang.String getReplay(java.lang.String uniqueId)
Returns the replay id- Parameters:
 uniqueId- UUID of the player- Returns:
 - the replay id
 
 
- 
getReason
java.lang.String getReason(java.lang.String uniqueId)
Returns the reason for a punishment- Parameters:
 uniqueId- UUID of the player- Returns:
 - the reason
 
 
 - 
 
 -