opinqzz/advancedcommands

There is no license information available for the latest version (dev-main) of this package.

A Library Helps You in Implementing Commands Easily !

dev-main 2024-09-16 16:38 UTC

This package is auto-updated.

Last update: 2024-09-17 14:42:50 UTC


README

A New Way To Create And Register Commands Easily Written with easy code to be understandable, kinda of

API Implementation

in onEnable,

  • To Add A Command
        new AdvancedCommands($this);
        $builder = new CommandBuilder();
        $builder->newCommand($command_name, $command_description, $command_usage_msg, $command_permission_msg, array $aliases)->setExecution(
            function(CommandSender $sender, Array $args) : void {
                $sender->sendMessage("TEST DONE BRO");
            }
        )->prepareCommandPermissions("test.permission", $builder::ALLOWED_OPERATOR)->build();
  • To Remove A Command
        new AdvancedCommands($this);
        $builder = new CommandBuilder();
        $builder->removeCommand("help");

You Cannot Resell This Library / Copyrights a reserved to oPinqzz