SimpleMacros
No funciona (falla al cargar) — Could not load plugin 'SimpleMacros_1.1.0.phar': Invalid plugin manifest: Invalid Plugin "permissions": Nested permission declarations are no longer supported. Declare each permission separately. · Probado en PocketMine-MP 5.50.0 (PHP 8.4.27).
Tired of typing boring, long commands again and again all over the time? This simple plugin can record "macros" that contain a bunch of commands and run them when requested by a command. These commands can also be sudo-run by op-sudo optionally.
Usage
Usage: /macro start|pause|resume|stop|run|sudo
/macro start [s] [t]: Start recording a macro.
Add an "s" after the command if you want the commands be automatically formatted.
Add a "t" after the command to execute commands while recording the macro.
Otherwise, unless you stopped or paused recording macros, you can't run any commands.
/macro commands are the only exception -- they won't be recorded nor blocked.
Aliases: /macro s
/macro pause: Pause recording a macro.
Aliases: /macro p
/macro resume: Resume recording a macro.
Aliases: /macro c, /macro cont, /macro continue
/macro stop [.f]
sprintf
If you start a macro with /macro start s, every line will be formatted with sprintf using the trailing arguments from /macro run or /macro sudo every time they are executed.
See this page for more information related to macros.
Examples
Reward
Want to give the same rewards every time, but your ops never remember the commands? Make a macro like this:
/macro start s /give %s diamond 16 /give %s iron 256 /give %s emerald 8 /givemoney %s 1000 /macro stop reward
Now every time anyone runs /macro run Steve, as long as they have the permissions to use /give and /givemoney, the items and money are automatically given to Steve!