Command Handler

Command Handler

By MrDouglax Published 5 Feb 2025 · Updated 9 Feb 2025
3.9

A Minecraft Bedrock (MCPE) command handler that allows easy command registration using a custom prefix (!). Supports permissions (tags), message filtering, and deferred execution. Includes built-in !help and !echo commands.

Select version for changelog:

Changelog
  • Command Aliases: You can now register alternative names (aliases) for commands, providing more flexibility for users.
  • Command Structure Definition: A structure property is introduced in the command configuration. This allows you to define the expected syntax of commands, which is used for help messages.
  • Detailed Help Messages: Commands can now have specific helpMessage descriptions. The !help <command> command is greatly improved to display detailed information about a command, including its description, aliases, structure, and required permissions.
  • Argument Validation: A validateArgs function can be added to a command's configuration. This allows you to implement custom logic to check if the arguments provided by the user are valid, improving error handling and user guidance.
  • Enhanced !help Command: The !help command is completely revamped. It now provides a more organized and informative display of available commands. It includes command descriptions, indicates required permissions, and offers detailed help for specific commands via !help <command>. The command list is also sorted for better readability.
  • New files & languges: The previous zip contained only 1 Typescript file with documentation in Portuguese. Now it has both Portuguese and English, in Typescript and Javascript.

Installation

Downloads

  • CommandHandler_V2.1.mcpack (8.62 KB)

Supported Minecraft versions

1
just came here to say custom slash cmds are here!
1
it's quite easy to create one of these, but this looks amazing and probably better than what i would make.
1
I will definitely be using this later! I never even knew that it was possible to do this on minecraft bedrock edition. THE POSSIBILITIES ARE ENDLESS!!!!

Thank you for this script!
1
always wanted to know how to make custom commands, but most tutorials are outdated! thanks for supplying us with easy template code!!