Interface AbstractCommandSender<Source>

Type Parameters:
Source - The class of the CommandSender being represented
All Known Subinterfaces:
AbstractBlockCommandSender<Source>, AbstractConsoleCommandSender<Source>, AbstractEntity<Source>, AbstractNativeProxyCommandSender<Source>, AbstractPlayer<Source>, AbstractProxiedCommandSender<Source>

public interface AbstractCommandSender<Source>
An interface that represents an object sends commands on some platform
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    hasPermission(String permissionNode)
    Tests if this CommandSender has permission to use the given permission node
    boolean
    Tests if this CommandSender has `operator` status, or the ability to run any command
  • Method Details

    • hasPermission

      boolean hasPermission(String permissionNode)
      Tests if this CommandSender has permission to use the given permission node
      Parameters:
      permissionNode - The node to check for
      Returns:
      True if this CommandSender holds the permission node, and false otherwise
    • isOp

      boolean isOp()
      Tests if this CommandSender has `operator` status, or the ability to run any command
      Returns:
      True if this CommandSender is an operator, and false otherwise
    • getSource

      Source getSource()
      Returns:
      The underlying CommandSender object