PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\command\CommandSender Interface Reference
+ Inheritance diagram for pocketmine\command\CommandSender:
+ Collaboration diagram for pocketmine\command\CommandSender:

Public Member Functions

 sendMessage ($message)
 
 getServer ()
 
 getName ()
 
 isPermissionSet ($name)
 
 hasPermission ($name)
 
 addAttachment (Plugin $plugin, $name=null, $value=null)
 
 removeAttachment (PermissionAttachment $attachment)
 
 recalculatePermissions ()
 
 getEffectivePermissions ()
 
 isOp ()
 
 setOp ($value)
 

Detailed Description

Definition at line 26 of file CommandSender.php.

Member Function Documentation

pocketmine\permission\Permissible::addAttachment ( Plugin  $plugin,
  $name = null,
  $value = null 
)
inherited
Parameters
Plugin$plugin
string$name
bool$value
Returns
PermissionAttachment

Implemented in pocketmine\Player, pocketmine\permission\PermissibleBase, and pocketmine\command\ConsoleCommandSender.

pocketmine\permission\Permissible::getEffectivePermissions ( )
inherited
pocketmine\command\CommandSender::getName ( )
Returns
string

Implemented in pocketmine\Player, pocketmine\command\ConsoleCommandSender, and pocketmine\command\RemoteConsoleCommandSender.

Referenced by pocketmine\command\Command\broadcastCommandMessage().

+ Here is the caller graph for this function:

pocketmine\command\CommandSender::getServer ( )
Returns

Implemented in pocketmine\Player, and pocketmine\command\ConsoleCommandSender.

Referenced by pocketmine\command\SimpleCommandMap\dispatch().

+ Here is the caller graph for this function:

pocketmine\permission\Permissible::hasPermission (   $name)
inherited

Returns the permission value if overridden, or the default value if not

Parameters
string | Permission$name
Returns
mixed

Implemented in pocketmine\Player, pocketmine\permission\PermissibleBase, and pocketmine\command\ConsoleCommandSender.

Referenced by pocketmine\command\Command\testPermissionSilent().

+ Here is the caller graph for this function:

pocketmine\permission\ServerOperator::isOp ( )
inherited

Checks if the current object has operator permissions

Returns
bool

Implemented in pocketmine\Player, pocketmine\command\ConsoleCommandSender, pocketmine\OfflinePlayer, and pocketmine\permission\PermissibleBase.

pocketmine\permission\Permissible::isPermissionSet (   $name)
inherited

Checks if this instance has a permission overridden

Parameters
string | Permission$name
Returns
boolean

Implemented in pocketmine\Player, pocketmine\permission\PermissibleBase, and pocketmine\command\ConsoleCommandSender.

pocketmine\permission\Permissible::recalculatePermissions ( )
inherited
pocketmine\permission\Permissible::removeAttachment ( PermissionAttachment  $attachment)
inherited
pocketmine\command\CommandSender::sendMessage (   $message)
Parameters
string$message

Implemented in pocketmine\Player, pocketmine\command\ConsoleCommandSender, and pocketmine\command\RemoteConsoleCommandSender.

Referenced by pocketmine\command\Command\broadcastCommandMessage(), pocketmine\Server\dispatchCommand(), and pocketmine\command\Command\testPermission().

+ Here is the caller graph for this function:

pocketmine\permission\ServerOperator::setOp (   $value)
inherited

Sets the operator permission for the current object

Parameters
bool$value
Returns
void

Implemented in pocketmine\Player, pocketmine\command\ConsoleCommandSender, pocketmine\permission\PermissibleBase, and pocketmine\OfflinePlayer.


The documentation for this interface was generated from the following file: