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
      long getExpire​(java.lang.String uniqueId)
      Returns the Unix time when the ban expires
      java.lang.String getReason​(java.lang.String uniqueId)
      Returns the reason for a punishment
      java.lang.String getReplay​(java.lang.String uniqueId)
      Returns the replay id
      boolean isBanned​(java.lang.String uniqueId)
      Check if the player is banned
      void pardon​(java.lang.String uniqueId)
      Unban a player
      void punish​(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 player
        reason - reason of the punishment
        replay - replay id
        minutes - 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