Overview

Namespaces

  • aliuly
    • common
      • selectors
    • loader
  • xPaw

Classes

  • ArmorItems
  • BasicCli
  • BasicHelp
  • BasicPlugin
  • ChatSession
  • Cmd
  • CmdSelector
  • ExpandVars
  • FastTransfer
  • FileUtils
  • FreezeSession
  • GetMotd
  • GetMotdAsyncTask
  • InvisibleSession
  • InvUtils
  • ItemName
  • mc
  • mc2
  • MoneyAPI
  • MPMU
  • Npc
  • PermUtils
  • PluginAsyncTask
  • PluginCallbackTask
  • PMScript
  • QueryAsyncTask
  • Rcon
  • RconTask
  • Session
  • ShieldSession
  • ShoppingCart
  • SignUtils
  • SkinUtils
  • SpySession
  • SubCommandMap
  • TPUtils
  • Overview
  • Namespace
  • Class

Class SubCommandMap

Sub Command dispatcher

Namespace: aliuly\common
Located at aliuly/common/SubCommandMap.php
Methods summary
public
# __construct( )
public
# getCommandCount( )

Returns the number of commands configured

Returns the number of commands configured

public
# dispatchSCmd( pocketmine\command\CommandSender $sender, pocketmine\command\Command $cmd, array $args, $data = null )

Dispatch commands using sub command table

Dispatch commands using sub command table

public
# registerSCmd( str $cmd, callable $callable, array $opts )

Register a sub command

Register a sub command

Parameters

$cmd
  • sub command
$callable
  • callable to execute
$opts
  • additional options
public
# getUsage( $scmd )
public
# getAlias( $scmd )
public
# getHelpMsg( $scmd )
public
# getHelp( )
public
# getAliases( )
API documentation generated by ApiGen