跳到主要内容
 Warning: Beta Version
版本:Beta ⚠️(未翻译)

Detect Command Ran Event

The Detect Command Ran Event event is triggered when an already existing command is ran.

 警告

This event only works if the command already exists. If you are trying to make a new command that does not exist already, use the Run Command Event instead.

How could this be used?

This event could be used to trigger a response when a specific command has been run. For example, you could have a command that sends a message to a channel when a command has been run, which could be used as an audit log for your admins.

Fields

Triggers

必填列表

Command

必填正则表达式

The command to listen for. This can be partial, so if you wanted to listen for any warp command, you could use warp as the command. However, this can also include parameters, so if you wanted to listen if the player warps to spawn, you could use warp spawn as the command.


 警告

Do not include the / at the start of the command. This will be added automatically.


可以使用 正则表达式 来匹配模式。例如,^.*$ 将匹配任何字符串。

Cancel

必填

Cancel the event when triggered