Interface AbstractCommandSender<Source>
- Type Parameters:
Source- The class of the CommandSender being represented
- All Known Subinterfaces:
AbstractBlockCommandSender<Source>,AbstractConsoleCommandSender<Source>,AbstractEntity<Source>,AbstractFeedbackForwardingCommandSender<Source>,AbstractNativeProxyCommandSender<Source>,AbstractPlayer<Source>,AbstractProxiedCommandSender<Source>,AbstractRemoteConsoleCommandSender<Source>
public interface AbstractCommandSender<Source>
An interface that represents an object sends commands on some platform
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(String permissionNode) Tests if this CommandSender has permission to use the given permission nodebooleanisOp()Tests if this CommandSender has `operator` status, or the ability to run any command
-
Method Details
-
hasPermission
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
-