Class PlayerOperator

java.lang.Object
space.arim.libertybans.api.Operator
space.arim.libertybans.api.PlayerOperator

public final class PlayerOperator extends Operator
An operator which is a player
Author:
A248
  • Method Details

    • of

      public static PlayerOperator of(UUID uuid)
      Gets an operator from a UUID
      Parameters:
      uuid - the player UUID
      Returns:
      the operator representation of the player
    • getType

      public Operator.OperatorType getType()
      Gets this operator's type: Operator.OperatorType.PLAYER
      Specified by:
      getType in class Operator
      Returns:
      the operator type
    • getUUID

      public UUID getUUID()
      Gets the UUID of this player operator
      Returns:
      the uuid
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Operator
    • equals

      public boolean equals(Object object)
      Description copied from class: Operator
      Evaluates whether this operator is the same as another
      Specified by:
      equals in class Operator
    • toString

      public String toString()
      Specified by:
      toString in class Operator