Interface PunishDialect
public interface PunishDialect
- Since:
- CAC v. 5.4.30
- Author:
- micartey
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the Unix time when the ban expires When a player is banned indefinitly, return 0Returns the reason for a punishmentbooleanCheck if the player is bannedvoidUnban a playervoidPunish a player
-
Method Details
-
punish
Punish a player- Parameters:
uniqueId- UUID of the playerreason- reason of the punishmentminutes- the punish duration
-
pardon
Unban a player- Parameters:
uniqueId- UUID of the player
-
isBanned
Check if the player is banned- Parameters:
uniqueId- UUID of the player- Returns:
- whether the player is banned or not
-
getExpire
Returns the Unix time when the ban expires When a player is banned indefinitly, return 0- Parameters:
uniqueId- UUID of the player- Returns:
- the Unix time when the ban expires
-
getReason
Returns the reason for a punishment- Parameters:
uniqueId- UUID of the player- Returns:
- the reason
-