CommandAPI 9.4.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.commandsenders.AbstractCommandSender< Source > Interface Template Reference

An interface that represents an object sends commands on some platform. More...

+ Inheritance diagram for dev.jorel.commandapi.commandsenders.AbstractCommandSender< Source >:

Public Member Functions

boolean hasPermission (String permissionNode)
 Tests if this CommandSender has permission to use the given permission node. More...
 
boolean isOp ()
 Tests if this CommandSender has operator status, or the ability to run any command. More...
 
Source getSource ()
 

Detailed Description

An interface that represents an object sends commands on some platform.

Parameters
<Source>The class of the CommandSender being represented

Member Function Documentation

◆ getSource()

Returns
The underlying CommandSender object

◆ hasPermission()

boolean dev.jorel.commandapi.commandsenders.AbstractCommandSender< Source >.hasPermission ( String  permissionNode)

Tests if this CommandSender has permission to use the given permission node.

Parameters
permissionNodeThe node to check for
Returns
True if this CommandSender holds the permission node, and false otherwise

◆ 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