Class BasicCli
Implements Basic CLI common functionality. It is useful for plugins that implement multiple commands or sub-commands
Direct known subclasses
aliuly\common\BasicHelp
public
|
|
public
|
#
enableSCmd( str $cmd, mixed[] $opts )
Register this class as a sub-command. See BasicPlugin for details. |
public
|
|
protected
integer
|
#
getPageNumber( array & $args )
Use for paginaged output implementation. This gets the player specified page number that we want to Display |
protected
boolean
|
#
paginateText( pocketmine\command\CommandSender $sender, integer $pageNumber, array $txt )
Use for paginaged output implementation. Shows a bunch of line in paginated output. |
protected
boolean
|
#
paginateTable( pocketmine\command\CommandSender $sender, integer $pageNumber, array $tab )
Use for paginaged output implementation. Formats and paginates a table |
public
mixed
|
|
public
|
|
public
|
#
unsetState( pocketmine\command\CommandSender $player )
Entry point for BasicPlugin state functionality. This makes it module specific. UnSets the state. |
protected
|
$owner
|