PHPackages                             funo-network/commando - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. funo-network/commando

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

funo-network/commando
=====================

https://github.com/FunoNetwork/Commando. Forked from CortexPE/Commando

057PHP

Since Dec 17Pushed 6y agoCompare

[ Source](https://github.com/FunoNetwork/Commando)[ Packagist](https://packagist.org/packages/funo-network/commando)[ RSS](/packages/funo-network-commando/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Commando[![](https://raw.githubusercontent.com/CortexPE/Commando/master/commando.png)](https://raw.githubusercontent.com/CortexPE/Commando/master/commando.png) [![](https://camo.githubusercontent.com/c0b24ad244c2b9d33a2717a46b33db35071dad167700361c71cfa22bd3f8d6d3/68747470733a2f2f706f676769742e706d6d702e696f2f63692e736869656c642f436f7274657850452f436f6d6d616e646f2f7e)](https://camo.githubusercontent.com/c0b24ad244c2b9d33a2717a46b33db35071dad167700361c71cfa22bd3f8d6d3/68747470733a2f2f706f676769742e706d6d702e696f2f63692e736869656c642f436f7274657850452f436f6d6d616e646f2f7e)
=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#commando)

A PocketMine-MP Virion for easier implementation of dynamic commands, including support for Minecraft: Bedrock Edition argument listing aimed for both the end users and the plugin developers.

Usage:
======

[](#usage)

Installation is easy, you may get a compiled phar [here](https://poggit.pmmp.io/ci/CortexPE/Commando/~) or integrate the virion itself into your plugin.

This virion is purely object oriented. So, to use it you'll have to extend the `BaseCommand` object, import the `PacketHooker` object and the optional objects for subommands and arguments (whenever necessary)

Why is this necessary?
======================

[](#why-is-this-necessary)

The virion provides an easy way to verify user input, convert user input, and for making sure that our arguments are the type that we expect it to.

On the plus side, it also provides the argument list for the client to recognize making it easy to use the command without remembering the order of arguments.

Because not only MC: Bedrock can use the commands, I've also implemented command usage pre-generation for ease of use with the console as well.

This also provides an easy to use API for lessening boilerplate code while adding more functionality and verbosity (error codes, and error lists, and sending usage messages).

It is structured in a similar way to the legacy PocketMine commands for ease of migration from an older codebase.

**Upon the time of writing this readme file, This virion will be used on [Hierarchy](https://github.com/CortexPE/Hierarchy) for the command implementation clean-up**

Basic Usage:
------------

[](#basic-usage)

***NOTE: Other miscellaneous functions can be indexed within your IDEs or by reading the source code. This is only the basic usage of the virion, it does not show every aspect of it as that'd be too long to document.***

### Create your command class

[](#create-your-command-class)

In our command class, we need to extend `BaseCommand` and implement its required methods to use all of Commando's features

```
