MadCommands - Getting Started

10

MadCommands makes you as a Minecraft server owner able to define your own commands which perform actions consisting of other already defined commands. It works just like a very simple scripting/programming system. You can use the new commands from the console, or even invoke them from other plugins.

If you smartly combine this plugin with other plugins, you can even create your own automated minigames, all without knowing anything about programming your own plugin or having access to the server’s file system.

With MadCommands you can:

  • Create custom procedures using a simple BASIC-like programming language
  • Use conditions and loops in the custom procedures
  • Examine and modify world blocks, players’ inventories,
  • Register new commands to run the custom procedures
  • Override existing commands with custom procedures
  • Assign procedures to be triggered by game events

Watch the following video for a quick demo of what MadCommands can do:

MadCommands Brief Introduction

If you like it, then go ahead and continue learning by watching the video tutorials:
MadCommands Video Tutorials

Or get started without video simply by following the instructions below…


Creating your first command

Start by defining a new command:

/cmd create helloworld

Now add some functionality to it:

/cmd add helloworld /say Hello everyone!
/cmd add helloworld /me says Hello!

And now try it out:

/helloworld

Setting up triggers

Assign your command to an event:

/cmd trigger login helloworld

Verify the triggers assignments:

/cmd triger

You should see something like this:

On login run helloworld 
On leave do nothing 
On spawn do nothing 
On bed do nothing 
On gm do nothing 
On eat do nothing 
On damage do nothing 
On death do nothing 
On cheat do nothing 
On place do nothing 
On break do nothing 

Now try it out:

  1. Disconnect from your server
  2. Re-connect to your server

Learning from examples

See what examples are available for you to install and examine:

/cmd install

Choose one or more, and install them:

/cmd install countdown
/cmd install playerinfo
/cmd install blockinfo
/cmd install copyblock

Check what has been installed/defined:

/cmd list

Choose one command and examine it:

/cmd list countdown

Try to understand what it does, then try it out to see if you’ve guessed right:

/countdown

Now go, learn, and write your own amazing commands ;-)


Getting Help

If you get stuck at any time, try to use help.
MadCommands has very complete and detailed help built into it.
Just try it out:

/cmd help

and follow the instructions you get:

[MadCommands v1.0 build 732] Help: Topics

Type /cmd help <topicname> to show more details about:

editing      how to define and edit your custom command
usage        how to run your custom commands
commands     special commands to use in your scripts
expressions  how to write expressions and calculations
operators    list of supported binary operatory
functions    list of supported functions
variables    list of special pre-defined variables
events       list of supported event names
permissions  permission nodes you can use
license      license conditions for using this plugin
all          display all help topics at once

The whole help is also available online.

Enjoy MadCommands…

…and if you build something great with it, don’t forget to let others know.

If you like trains or mazes, make sure to check out TrainMazeLand!
If my post has helped you, feel free to donate some credits to trainmazeland.leet.cc ;-)

Creating a post here to bump it into the recents section. :D

LEET Dual Manager
ALT TEXT

@MrCakeSlayer said in MadCommands - Getting Started:

Creating a post here to bump it into the recents section. :D

Cool, may check it out

Twitter- ShiningVex
Discord- TheShiningVex#7277

Yamburgers or Turkey Burgers?

@madhon it’s a awesome plugin, but can you add this /cmd remove <cmd> so that can remove the command from the list. Also may you add a %p or {player} so I can use it to give players stuff?

But this plugin is a successful plugin well done @madhon! Congratulations!

~sky_craft

~Sky_Craft
LEET Customer Support Representative

Need help? Feel free to make a support ticket at support.leet.cc

•If you have any questions feel free to ask me•
Join SkyCraft:
IP/Port: b29988.leet.cc/29988

@Sky_craft You can use /cmd delete <command> but it does not disappear completely until you restart server. This was a limitation of PocketMine at the time I wrote the plugin. I have not checked yet whether unregister method has been added since then. If it has then I will definitely make /cmd delete work better in the next version.

To your other question - you can use %p% to get name of the player running your command.

If you like trains or mazes, make sure to check out TrainMazeLand!
If my post has helped you, feel free to donate some credits to trainmazeland.leet.cc ;-)

@MrCakeSlayer said in MadCommands - Getting Started:

Creating a post here to bump it into the recents section. :D

banned for bumping an old thread

Jk

This plugin is amazing, just 1 question. is it possible to use /title for all server? and if so, how?
And just to make sure, the commands I install are only available to OP players? [setinventory and such]

R.I.P
1999 Credits (Functions)

Hello Fello Earthlings 😁 Have a wonderful day

@JMPlayZGameZ said in MadCommands - Getting Started:

R.I.P
1999 Credits (Functions)

functions was terrible anyways even when it did work, MadCommands is way better.

->>EruptusPE Owner/Founder/LeadDev<<-

Discord: v.ht/epediscord
Vote: v.ht/epevote
Twitter: http://twitter.com/EruptusPE

One of the best plugin ever. Thanks @madhon for this

Banned for harassing multiple users and multiple TOS rule breaks. ~MrCakeSlayer

Lots of effort put into MadCommands by madhon. It is an expensive plugin maybe for some of you but it is worth buying the plugin.

Arthix

| CEO Of UniverseCreations |

@Nick_616 You can use the onlineplayers function:

title onlineplayers() Let's get started

Commands you install are available to whomever you make them available.
MadCommands lets you set permissions for each command.
That will be covered in detail in one of my next video tutorials.

If you like trains or mazes, make sure to check out TrainMazeLand!
If my post has helped you, feel free to donate some credits to trainmazeland.leet.cc ;-)

Idiotic plugin. Wasted my credits and time. Doesn’t even work thank you, now refund my money or credits.

Sometimes, people may forget what you said, people will forget what you did, but people will never forget how you made them feel. — Maya Angelou

Always happy to help! Visit my profile for more information how to contact me!

It worked for me. I’ve bought it and tested it out a bit. Well it isn’t an easy plugin to learn but once you get the hang of it there is so much stuff you can use it for.

For support, visit: http://support.leet.cc

@JNTZ There is no command /cmd on my server… Tried reloading the plugin…

Sometimes, people may forget what you said, people will forget what you did, but people will never forget how you made them feel. — Maya Angelou

Always happy to help! Visit my profile for more information how to contact me!

@Hypnify I’ll come on and try to help

For support, visit: http://support.leet.cc

@madhon said in MadCommands - Getting Started:

@Nick_616 You can use the onlineplayers function:

title onlineplayers() Let's get started

Commands you install are available to whomever you make them available.
MadCommands lets you set permissions for each command.
That will be covered in detail in one of my next video tutorials.

Thank you, another question. When you delete a command. it still shows up as an available command in the chat. Is that a bug? and is there a way to actually fully delete it?

@Nick_616 said in MadCommands - Getting Started:

@madhon said in MadCommands - Getting Started:

@Nick_616 You can use the onlineplayers function:

title onlineplayers() Let's get started

Commands you install are available to whomever you make them available.
MadCommands lets you set permissions for each command.
That will be covered in detail in one of my next video tutorials.

Thank you, another question. When you delete a command. it still shows up as an available command in the chat. Is that a bug? and is there a way to actually fully delete it?

Restarting the server will delete the comman.d

Check out my YouTube channel: https://www.youtube.com/channel/UCsx_TB1nVOIZ1m69nSI05pg

alt text

Contact us - support.leet.cc
CoOwner of BossNether
Always happy to be of assistance!

@Nick_616 said in MadCommands - Getting Started:

@madhon said in MadCommands - Getting Started:

@Nick_616 You can use the onlineplayers function:

title onlineplayers() Let's get started

Commands you install are available to whomever you make them available.
MadCommands lets you set permissions for each command.
That will be covered in detail in one of my next video tutorials.

Thank you, another question. When you delete a command. it still shows up as an available command in the chat. Is that a bug? and is there a way to actually fully delete it?

It’s a pocketmine limitation, @madhon said.

->>EruptusPE Owner/Founder/LeadDev<<-

Discord: v.ht/epediscord
Vote: v.ht/epevote
Twitter: http://twitter.com/EruptusPE

@ObsidianTOG said in MadCommands - Getting Started:

@Nick_616 said in MadCommands - Getting Started:

@madhon said in MadCommands - Getting Started:

@Nick_616 You can use the onlineplayers function:

title onlineplayers() Let's get started

Commands you install are available to whomever you make them available.
MadCommands lets you set permissions for each command.
That will be covered in detail in one of my next video tutorials.

Thank you, another question. When you delete a command. it still shows up as an available command in the chat. Is that a bug? and is there a way to actually fully delete it?

Restarting the server will delete the comman.d

Ok, thank you.

Log in to reply

Looks like your connection to LEET Forums was lost, please wait while we try to reconnect.