Interface PunishDialect


public interface PunishDialect
Since:
CAC v. 5.4.30
Author:
micartey
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getExpire(String uniqueId)
    Returns the Unix time when the ban expires When a player is banned indefinitly, return 0
    getReason(String uniqueId)
    Returns the reason for a punishment
    boolean
    isBanned(String uniqueId)
    Check if the player is banned
    void
    pardon(String uniqueId)
    Unban a player
    void
    punish(String uniqueId, String reason, long minutes)
    Punish a player
  • Method Details

    • punish

      void punish(String uniqueId, String reason, long minutes)
      Punish a player
      Parameters:
      uniqueId - UUID of the player
      reason - reason of the punishment
      minutes - the punish duration
    • pardon

      void pardon(String uniqueId)
      Unban a player
      Parameters:
      uniqueId - UUID of the player
    • isBanned

      boolean isBanned(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(String uniqueId)
      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

      String getReason(String uniqueId)
      Returns the reason for a punishment
      Parameters:
      uniqueId - UUID of the player
      Returns:
      the reason