Skip to content

Commands

Simon_Flash edited this page Feb 1, 2018 · 2 revisions

Available Commands

  • Execute: Execute a command with a modified source or delay
  • SendMessage: Send a un-prefixed (raw) message to a source

Execute

Usage: /cmdcontrol execute [-delay] [-source] <command>
-> -delay (Duration): Delay of the execution (flag)
-> -source (Source): Source for the command (flag)
-> command (Command): Command to be executed
Aliases: execute, ex
Permission: cmdcontrol.command.execute.base
-> cmdcontrol.command.execute.delay: Execute with a delay
-> cmdcontrol.command.execute.other: Execute from another player
-> cmdcontrol.command.execute.console: Execute from console

Executes a command; generally with one or more modifications.

The delay is expected in duration format, such as 5m (5 minutes), 12s500ms (12.5 seconds), etc. Executions with delays are not stored externally, so if the server restarts the command will not be run.

The source may be defined as a player name or one of #console, #server, #me, or #self. Separate permissions are required to execute a command from another player or the console (see above). They source also have permission to run the command and will receive any related messages for the command.

Warning: The permission to execute commands from console should not be given lightly!

Examples

  • /cc ex -delay 1000 say hi: Executes say hi from this source after 1 second (1000ms)
  • /cc ex -source #console bc hey: Executes bc hey from console
  • /cc ex -source Simon_Flash me hello: Executes me hello from the source Simon_Flash

SendMessage

Usage: /cmdcontrol sendmessage <source> <message>
-> source (Source): Source to send message to
-> message (Text): Message to be sent
Aliases: sendmessage, sm
Permission: cmdcontrol.command.sendmessage.base

Sends a un-prefixed (raw) message to the given source (see above). This is similar to Minecraft's /tellraw command, but it uses a message with formatting codes instead of JSON.

Examples

  • /cc sm Simon_Flash hiya &a:D: Sends the formatted hiya :D message to Simon_Flash
  • /cc sm #console heyyo &e.-.: Sends the formatted heyyo .-. message to console*

*Some consoles do not support color formatting


Clone this wiki locally