Class PlayerController


  • public abstract class PlayerController
    extends java.lang.Object
    Since:
    CAC v. 0.9945
    Author:
    Clientastisch
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PlayerController.Verify
      Display property, used in order to hide an verification or present the verification to the whole server
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract PlayerNetwork getNetwork()
      Returns the Network controller of the player
      abstract java.lang.String getPaylaod()
      Returns the modification identifier, for instance Vanilla
      abstract SensitivityProcessor getSensitivityProcessor()
      Returns the sensitvitity processor of the player
      abstract PlayerTraffic getTraffic()
      Returns the tcp packet handler which listens to incomming and outgoing packets for the public ip address of the player on the server port
      abstract void isShowingFlags()
      Returns whether a player is showing alerts or not.
      abstract boolean isVerified()
      If a player is verified he will no longer be detected by the most detections.
      abstract boolean isWhitelisted()
      If a player is whitelisted, he will no longer be detected.
      static PlayerController of​(java.lang.Object player)
      Returns the PlayerController of a player
      abstract void setShowingFlags​(boolean state)
      Show/Hide alerts caused by players.
      abstract void setVerified​(boolean verified, PlayerController.Verify state)
      Set a players verify state.
      abstract void setWhitelisted​(boolean whitelisted)
      If a player is whitelisted, he will no longer be detected.
      abstract void setWhitelisted​(boolean whitelisted, long time)
      If a player is whitelisted, he will no longer be detected.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlayerController

        public PlayerController()
    • Method Detail

      • isWhitelisted

        public abstract boolean isWhitelisted()
        If a player is whitelisted, he will no longer be detected.
        Returns:
        true if a player is whitelisted
      • setWhitelisted

        public abstract void setWhitelisted​(boolean whitelisted)
        If a player is whitelisted, he will no longer be detected.
        Parameters:
        whitelisted - The state of the player whitelist
        See Also:
        isWhitelisted()
      • setWhitelisted

        public abstract void setWhitelisted​(boolean whitelisted,
                                            long time)
        If a player is whitelisted, he will no longer be detected.
        Parameters:
        whitelisted - The state of the player whitelist
        time - Time amount of seconds a player keeps the new state
        See Also:
        isWhitelisted()
      • isVerified

        public abstract boolean isVerified()
        If a player is verified he will no longer be detected by the most detections.
        Returns:
        The verified state
      • setVerified

        public abstract void setVerified​(boolean verified,
                                         PlayerController.Verify state)
        Set a players verify state. He will no longer be detected by the most detections.
        Parameters:
        verified - whether the player should be verified or not
        state - whether the player should be public verified or private
        See Also:
        isVerified()
      • isShowingFlags

        public abstract void isShowingFlags()
        Returns whether a player is showing alerts or not. He can see every violation caused by a player.
      • setShowingFlags

        public abstract void setShowingFlags​(boolean state)
        Show/Hide alerts caused by players.
        Parameters:
        state - whether the player can see flags or not
        See Also:
        isShowingFlags()
      • getPaylaod

        public abstract java.lang.String getPaylaod()
        Returns the modification identifier, for instance Vanilla
        Returns:
        Modification identifier
      • getNetwork

        public abstract PlayerNetwork getNetwork()
        Returns the Network controller of the player
        Returns:
        network data of the player
        See Also:
        PlayerNetwork
      • getSensitivityProcessor

        public abstract SensitivityProcessor getSensitivityProcessor()
        Returns the sensitvitity processor of the player
        Returns:
        mouse sensitivity processor
        Since:
        2.3.3
        See Also:
        SensitivityProcessor
      • getTraffic

        public abstract PlayerTraffic getTraffic()
        Returns the tcp packet handler which listens to incomming and outgoing packets for the public ip address of the player on the server port
        Returns:
        traffic handler
        Since:
        2.5.0
        See Also:
        PlayerTraffic
      • of

        public static PlayerController of​(java.lang.Object player)
        Returns the PlayerController of a player
        Parameters:
        player - The player
        Returns:
        PlayerController of player