◆ __construct()
◆ addAttachment()
addAttachment |
( |
Plugin |
$plugin, |
|
|
|
$name = null , |
|
|
|
$value = null |
|
) |
| |
- Parameters
-
Plugin | $plugin | |
string | $name | |
bool | $value | |
- Returns
Implements Permissible.
68 return $this->perm->addAttachment($plugin, $name, $value);
◆ getEffectivePermissions()
getEffectivePermissions |
( |
| ) |
|
- Returns
- []
Implements Permissible.
88 return $this->perm->getEffectivePermissions();
◆ getName()
◆ getServer()
◆ hasPermission()
- Parameters
-
\pocketmine\permission\Permission | string | $name | |
- Returns
- bool
Implements Permissible.
57 return $this->perm->hasPermission($name);
◆ isOp()
◆ isPermissionSet()
- Parameters
-
\pocketmine\permission\Permission | string | $name | |
- Returns
- bool
Implements Permissible.
48 return $this->perm->isPermissionSet($name);
◆ isPlayer()
◆ recalculatePermissions()
recalculatePermissions |
( |
| ) |
|
- Returns
- void
Implements Permissible.
81 $this->perm->recalculatePermissions();
◆ removeAttachment()
- Parameters
-
PermissionAttachment | $attachment | |
- Returns
- void
Implements Permissible.
77 $this->perm->removeAttachment($attachment);
◆ sendMessage()
- Parameters
-
Implements CommandSender.
109 if($message instanceof TextContainer){
110 $message = $this->
getServer()->getLanguage()->translate($message);
112 $message = $this->
getServer()->getLanguage()->translateString($message);
115 foreach(explode(
"\n", trim($message)) as $line){
◆ setOp()
The documentation for this class was generated from the following file:
- src/pocketmine/command/ConsoleCommandSender.php